Skip to content

Commit

Permalink
fix(http): remove config
Browse files Browse the repository at this point in the history
  • Loading branch information
lennartkloock committed Jan 29, 2025
1 parent cff243a commit 242121e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 122 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions crates/http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ tokio = { version = "1.43.0" }
tower = { version = "0.5.2", features = ["make"] }
thiserror = "2.0.11"
itertools = "0.14.0"

# Config
serde = { version = "1.0.217", features = ["derive"] }
scuffle-context.workspace = true

# HTTP parsing
http = "1.2.0"
Expand Down
4 changes: 2 additions & 2 deletions crates/http/examples/src/axum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ async fn main() {
pub fn get_tls_config() -> io::Result<rustls::ServerConfig> {
rustls::crypto::aws_lc_rs::default_provider().install_default().unwrap();

let certs = load_certs("fullchain.pem")?;
let key = load_private_key("privkey.pem")?;
let certs = load_certs("local/fullchain.pem")?;
let key = load_private_key("local/privkey.pem")?;

let server_config = rustls::ServerConfig::builder()
.with_no_client_auth()
Expand Down
115 changes: 0 additions & 115 deletions crates/http/src/config.rs

This file was deleted.

1 change: 0 additions & 1 deletion crates/http/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
pub mod backend;
pub mod config;
pub mod server;
pub mod error;

0 comments on commit 242121e

Please sign in to comment.