beeta/chat-service/config.json
2026-01-05 22:54:27 -05:00

49 lines
1 KiB
JSON

{
"app": {
"threads_num": 4,
"enable_session": false,
"session_timeout": 0,
"document_root": "./",
"max_connections": 10000,
"max_connections_per_ip": 100,
"load_config_file": true,
"run_as_daemon": false,
"log_path": "",
"log_level": "INFO",
"log_size_limit": 100000000,
"load_libs": [],
"use_sendfile": true,
"use_gzip": true,
"static_files_cache_time": 0,
"load_config_in_advance": true,
"log_access": true
},
"listeners": [
{
"address": "0.0.0.0",
"port": 8081,
"https": false
}
],
"redis": {
"host": "${REDIS_HOST}",
"port": 6379,
"db": 1,
"timeout": 5
},
"jwt": {
"secret": "${JWT_SECRET}"
},
"chat": {
"default_retention_hours": 24,
"max_message_length": 500,
"max_messages_per_realm": 1000,
"guest_prefix": "guest",
"guest_id_pattern": "{prefix}{number}",
"cleanup_interval_seconds": 300
},
"backend_api": {
"host": "drogon-backend",
"port": 8080
}
}