added config file support
This commit is contained in:
1 parent
ded35ae796
commit
88162a9245
5 files changed
+644
-141
No files matched your search
+20
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"server": {
|
||||
"host": "0.0.0.0",
|
||||
"port": 3333,
|
||||
"max_connections": 10000
|
||||
},
|
||||
"database": {
|
||||
"url": "sqlite:chat.db"
|
||||
},
|
||||
"files": {
|
||||
"avatars_dir": "web/avatars",
|
||||
"web_dir": "web",
|
||||
"max_avatar_size": 5242880
|
||||
},
|
||||
"limits": {
|
||||
"max_message_length": 4096,
|
||||
"max_username_length": 50,
|
||||
"min_password_length": 6
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user