frontend: use secret key for cookies

This commit is contained in:
Lennart
2024-11-02 13:10:41 +01:00
parent 442082fb1c
commit 33eae4a780
6 changed files with 36 additions and 15 deletions

View File

@@ -50,10 +50,17 @@ async fn main() -> Result<()> {
config::AuthConfig::Static(config) => StaticUserStore::new(config),
});
HttpServer::new(move || make_app(addr_store.clone(), cal_store.clone(), user_store.clone()))
.bind((config.http.host, config.http.port))?
.run()
.await?;
HttpServer::new(move || {
make_app(
addr_store.clone(),
cal_store.clone(),
user_store.clone(),
config.frontend.clone(),
)
})
.bind((config.http.host, config.http.port))?
.run()
.await?;
Ok(())
}