Add server config
This commit is contained in:
parent
76a23b9682
commit
1420cf104e
2 changed files with 57 additions and 0 deletions
6
backend/sync_server/src/consts.rs
Normal file
6
backend/sync_server/src/consts.rs
Normal 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue