Compare commits

...

3 commits

Author SHA1 Message Date
987748159a
set logging level based on build type 2024-06-02 14:51:45 +02:00
2b69e03c03
update dependencies 2024-06-02 14:49:54 +02:00
70a0575d08
remove max file size for embedding static files
Fixed in crate
2024-06-02 14:44:43 +02:00
2 changed files with 239 additions and 246 deletions

479
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -538,6 +538,10 @@ pub struct Authorization {
#[async_std::main]
async fn main() -> Result<()> {
#[cfg(debug_assertions)]
log::with_level(log::LevelFilter::Debug);
#[cfg(not(debug_assertions))]
log::with_level(log::LevelFilter::Error);
let mut conf_file =
@ -573,7 +577,7 @@ async fn main() -> Result<()> {
app.at("/new-account").get(create_account_endpoint);
app.at("/metrics").get(metrics_endpoint);
auto_serve_dir!(app, "/static", "static", 51200);
auto_serve_dir!(app, "/static", "static");
println!("Server started at {}", &bind_address);