Skip to content

Commit

Permalink
add host parameter to config
Browse files Browse the repository at this point in the history
  • Loading branch information
svenrademakers committed Apr 12, 2024
1 parent 75a1b01 commit 4e6dffa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pub struct Config {
pub tls: Tls,
pub store: Store,
pub authentication: Authentication,
pub host: String,
pub port: u16,
pub www: PathBuf,
pub redirect_http: bool,
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ async fn main() -> anyhow::Result<()> {
// Serve a static tree of files of the web UI. Must be the last item.
.service(Files::new("/", &config.www).index_file("index.html"))
})
.bind_openssl((config.host, config.port), tls)?
.bind_openssl((config.host.clone(), config.port), tls)?
.keep_alive(KeepAlive::Os)
.workers(2)
.run();
Expand Down

0 comments on commit 4e6dffa

Please sign in to comment.