Replace environment variable config with CLI flag configuration

- Migrate from environment variables to CLI flags for configuration
- Add support for --listen, --root-path, --dir-indexing, --log-level, --response-timeout flags
- Remove config validation error struct as it's no longer needed
- Update .gitignore to exclude /dist directory
- Simplify configuration loading with flag.Parse()
This commit is contained in:
2025-05-26 13:27:44 +03:00
parent 05ff646284
commit 4456308d48
3 changed files with 48 additions and 118 deletions

1
.gitignore vendored
View File

@@ -2,3 +2,4 @@
**/*~
/.idea
/run.sh
/dist