diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-03 11:17:39 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-03 11:19:20 +0000 |
| commit | 57bc8cd9c021feaf08e139e8fb62800bc476068e (patch) | |
| tree | c62abdffb4c91999cae2f570597b9ac154c2e51d /src/http/mod.rs | |
| parent | 2f8ecd482077d82f2d1a937c7f979eaaa87a27b2 (diff) | |
improved settings cli flags > env vars > defaults
Diffstat (limited to 'src/http/mod.rs')
| -rw-r--r-- | src/http/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/mod.rs b/src/http/mod.rs index 4665281..8b1f687 100644 --- a/src/http/mod.rs +++ b/src/http/mod.rs | |||
| @@ -118,7 +118,7 @@ impl Service<Request<Incoming>> for HttpService { | |||
| 118 | let path = req.uri().path().to_string(); | 118 | let path = req.uri().path().to_string(); |
| 119 | let query = req.uri().query().map(|s| s.to_string()); | 119 | let query = req.uri().query().map(|s| s.to_string()); |
| 120 | let method = req.method().clone(); | 120 | let method = req.method().clone(); |
| 121 | let git_data_path = self.config.git_data_path.clone(); | 121 | let git_data_path = self.config.effective_git_data_path(); |
| 122 | let database = self.database.clone(); | 122 | let database = self.database.clone(); |
| 123 | 123 | ||
| 124 | // Handle OPTIONS preflight requests (CORS) | 124 | // Handle OPTIONS preflight requests (CORS) |
| @@ -427,7 +427,7 @@ pub async fn run_server( | |||
| 427 | let bind_addr: SocketAddr = config.bind_address.parse()?; | 427 | let bind_addr: SocketAddr = config.bind_address.parse()?; |
| 428 | 428 | ||
| 429 | tracing::info!("Starting HTTP server on {}", bind_addr); | 429 | tracing::info!("Starting HTTP server on {}", bind_addr); |
| 430 | tracing::info!("Relay name: {}", config.relay_name); | 430 | tracing::info!("Relay name: {}", config.relay_name()); |
| 431 | tracing::info!("Domain: {}", config.domain); | 431 | tracing::info!("Domain: {}", config.domain); |
| 432 | 432 | ||
| 433 | let listener = TcpListener::bind(&bind_addr).await?; | 433 | let listener = TcpListener::bind(&bind_addr).await?; |