Files
chat/config.json
T
Ty Clifford ef7a9a330f -
Fixed polling after voice/text sends.

Changes include:

Stalled polls abort and retry automatically.
Polling now schedules after each completed request.
Local sends no longer advance the server cursor and skip interleaved 
messages.
Sends trigger immediate reconciliation.
API requests bypass browser caches.
2026-06-08 17:25:49 -04:00

93 lines
1.8 KiB
JSON

{
"app": {
"base_url": ""
},
"chat": {
"max_message_length": 500,
"max_username_length": 12,
"poll_interval_ms": 2000,
"poll_timeout_ms": 12000,
"messages_per_page": 100,
"session_lock_ip": true,
"session_lock_cookie": true,
"allow_guest": false
},
"archive": {
"enabled": true,
"archive_dir": "archive",
"format": "sqlite"
},
"voice": {
"enabled": true,
"max_duration_seconds": 60,
"max_upload_bytes": 12582912,
"auto_play_default": true,
"upload_dir": "uploads/voice"
},
"groups": {
"enabled": true
},
"database": {
"main_db": "db/chat.sqlite",
"archive_path": "archive/{year}/{month}/{day}.sqlite",
"mysql": {
"enabled": false,
"auto_import": false,
"dsn": "",
"username": "",
"password": "",
"sync_interval_seconds": 900
}
},
"ui": {
"default_theme": "dark",
"allow_theme_toggle": true,
"app_title": "Chat : )",
"app_subtitle": "Be kind."
},
"security": {
"min_password_length": 4,
"max_login_attempts": 10,
"session_timeout_hours": 24,
"bcrypt_cost": 10,
"allowed_origins": []
},
"subscriptions": {
"enabled": true
},
"mailgun": {
"api_key": "",
"domain": "",
"from": "",
"api_base": "https://api.mailgun.net/v3"
},
"stripe": {
"secret_key": "",
"webhook_secret": "",
"success_url": "",
"cancel_url": "",
"portal_return_url": ""
},
"stats": {
"enabled": true,
"ip_hash_salt": "change-this-to-a-long-random-value"
},
"admin": {
"password": "changeme123"
},
"colors": {
"user_palette": [
"#00ff9f",
"#00b8ff",
"#ff2d78",
"#ff9f00",
"#ff3c3c",
"#bf5fff",
"#00ffff",
"#ffff00",
"#ff6b35",
"#39ff14"
]
}
}