Skip to content

Commit a8a7d39

Browse files
committed
Revert "Merge pull request #265 from code0-tech/#263-add-https-configured-env"
This reverts commit 644f3d5, reversing changes made to 991b416.
1 parent 644f3d5 commit a8a7d39

4 files changed

Lines changed: 7 additions & 15 deletions

File tree

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ version = "0.0.0"
77
edition = "2024"
88

99
[workspace.dependencies]
10-
code0-flow = { version = "0.0.41", features = ["flow_health", "flow_config", "flow_service"] }
11-
tucana = { version = "0.0.76", features = ["aquila"] }
10+
code0-flow = { version = "0.0.40", features = ["flow_health", "flow_config", "flow_service"] }
11+
tucana = { version = "0.0.75", features = ["aquila"] }
1212
serde_json = { version = "1.0.138" }
1313
log = "0.4.27"
1414
env_logger = "0.11.8"

adapter/rest/src/config.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ pub struct HttpServerConfig {
77
pub external_port: u16,
88
pub host: String,
99
pub external_host: String,
10-
pub https_configured: bool,
1110
}
1211

1312
impl LoadConfig for HttpServerConfig {
@@ -20,7 +19,6 @@ impl LoadConfig for HttpServerConfig {
2019
port,
2120
external_port: env_with_default("EXTERNAL_HTTP_SERVER_PORT", port),
2221
external_host: env_with_default("EXTERNAL_HTTP_SERVER_HOST", host),
23-
https_configured: env_with_default("HTTPS_CONFIGURED", false),
2422
}
2523
}
2624
}

adapter/rest/src/main.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ async fn main() {
3333
let external_addr = runner.get_server_config().external_port;
3434
let external_host = runner.get_server_config().external_host.clone();
3535

36-
let protocol = match runner.get_server_config().https_configured {
37-
true => String::from("https"),
38-
false => String::from("http"),
39-
};
40-
4136
let configs = vec![ModuleDefinitionAppendix {
4237
module_identifier: String::from("draco-rest"),
4338
definitions: vec![ModuleDefinition {
@@ -47,7 +42,6 @@ async fn main() {
4742
host: external_host,
4843
port: external_addr as i64,
4944
endpoint: String::from(r"/${{project_slug}}${{httpURL}}"),
50-
protocol: protocol,
5145
},
5246
)),
5347
}],

0 commit comments

Comments
 (0)