forked from neri/datatrash
more intuitive max file size
This commit is contained in:
parent
86b2b2bac8
commit
458220df47
|
@ -217,7 +217,7 @@ async fn main() -> std::io::Result<()> {
|
||||||
let upload_max_bytes: usize = env::var("UPLOAD_MAX_BYTES")
|
let upload_max_bytes: usize = env::var("UPLOAD_MAX_BYTES")
|
||||||
.ok()
|
.ok()
|
||||||
.and_then(|variable| variable.parse().ok())
|
.and_then(|variable| variable.parse().ok())
|
||||||
.unwrap_or(8_388_608);
|
.unwrap_or(8 * 1024 * 1024);
|
||||||
let bind_address = env::var("BIND_ADDRESS").unwrap_or_else(|_| "0.0.0.0:8000".to_owned());
|
let bind_address = env::var("BIND_ADDRESS").unwrap_or_else(|_| "0.0.0.0:8000".to_owned());
|
||||||
|
|
||||||
HttpServer::new({
|
HttpServer::new({
|
||||||
|
|
Loading…
Reference in New Issue