Create a new config with optional TLS.
(tls: Option<TlsConfig>)
| 567 | impl Config { |
| 568 | /// Create a new config with optional TLS. |
| 569 | pub fn new(tls: Option<TlsConfig>) -> Self { |
| 570 | Self { |
| 571 | bind_address: default_bind_address(), |
| 572 | health_bind_address: None, |
| 573 | metrics_bind_address: None, |
| 574 | log_level: default_log_level(), |
| 575 | tls, |
| 576 | oidc: None, |
| 577 | auth: GatewayAuthConfig::default(), |
| 578 | mtls_auth: MtlsAuthConfig::default(), |
| 579 | gateway_jwt: None, |
| 580 | database_url: String::new(), |
| 581 | compute_drivers: vec![], |
| 582 | compute_driver_endpoints: BTreeMap::new(), |
| 583 | ssh_session_ttl_secs: default_ssh_session_ttl_secs(), |
| 584 | grpc_rate_limit_requests: None, |
| 585 | grpc_rate_limit_window_secs: None, |
| 586 | service_routing: ServiceRoutingConfig::default(), |
| 587 | } |
| 588 | } |
| 589 | |
| 590 | /// Create a new configuration with the given bind address. |
| 591 | #[must_use] |
nothing calls this directly
no test coverage detected