Add configuration loading and error handling

Introduces a new `config` module for loading application settings from
environment variables and a `users.toml` file. An `error` module is
added to handle application-specific errors gracefully. An
`.env.example` file is created to show available configuration options,
and `users.toml.example` provides a template for user data. The main
function now initializes the configuration and prints the server port.
This commit is contained in:
2026-04-13 12:36:01 +02:00
parent 5b87f73a42
commit 44dac06961
6 changed files with 215 additions and 2 deletions
+1
View File
@@ -1,4 +1,5 @@
server/target/
.env
users.toml
*.snap.new
repomix-output.xml