Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
rocket server bind to server_ip
Browse files Browse the repository at this point in the history
  • Loading branch information
J-HowHuang committed Apr 26, 2024
1 parent b48dfc6 commit 5c54285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl ServerNode {
let cache_state = self.cache_manager.clone();
let s3_connector_state = self.s3_connector.clone();
rocket::build()
.configure(rocket::Config::figment().merge(("port", rocket_port)))
.configure(rocket::Config::figment().merge(("address", &self.config.server_ip)).merge(("port", rocket_port)))
.manage(cache_state)
.manage(s3_connector_state)
.mount("/", routes![health_check, get_file, cache_stats, clear])
Expand Down

0 comments on commit 5c54285

Please sign in to comment.