Add server config

This commit is contained in:
Andras Schmelczer 2024-12-08 10:57:13 +00:00
commit 1420cf104e
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
2 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,6 @@
pub const CONFIG_PATH: &str = "config.yaml";
pub const DEFAULT_SQLITE_URL: &str = "db.sqlite3";
pub const DEFAULT_HOST: &str = "127.0.0.1";
pub const DEFAULT_PORT: u16 = 3000;
pub const DEFAULT_MAX_CONNECTIONS: u32 = 12;
pub const DEFAULT_MAX_BODY_SIZE_MB: usize = 4096;