44dac06961
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.
12 lines
223 B
TOML
12 lines
223 B
TOML
[[user]]
|
|
slug = "dr_mueller"
|
|
api_key = "change-me-to-a-secure-key"
|
|
web_password = "$2b$12$..."
|
|
role = "doctor"
|
|
|
|
[[user]]
|
|
slug = "dr_schmidt"
|
|
api_key = "change-me-to-a-secure-key"
|
|
web_password = "$2b$12$..."
|
|
role = "doctor"
|