Externalize configuration and improve Docker compatibility
- Add STORAGE_DIR and PORT environment variables - Update tests to use 0.0.0.0 instead of 127.0.0.1 for Docker compatibility - Update documentation and changelog
This commit is contained in:
parent
f32fa316dc
commit
a2c19e7e9e
@ -21,7 +21,7 @@ async fn main() -> tide::Result<()> {
|
|||||||
.ok()
|
.ok()
|
||||||
.and_then(|p| p.parse::<u16>().ok())
|
.and_then(|p| p.parse::<u16>().ok())
|
||||||
.unwrap_or(DEFAULT_PORT);
|
.unwrap_or(DEFAULT_PORT);
|
||||||
|
|
||||||
// Parse command line arguments
|
// Parse command line arguments
|
||||||
let args: Vec<String> = env::args().collect();
|
let args: Vec<String> = env::args().collect();
|
||||||
let no_ttl_permanent = args.iter().any(|arg| arg == "--permanent");
|
let no_ttl_permanent = args.iter().any(|arg| arg == "--permanent");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user