added config file support

This commit is contained in:
wt committed 2025-11-23 21:29:49 +07:00
1 parent ded35ae796
commit 88162a9245
5 files changed
+644 -141

No files matched your search

+20
View File
@@ -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
}
}