fix: 修复 Gunicorn systemd 配置与 MySQL 连接复用以缓解卡顿

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
XingQue
2026-07-09 04:21:47 +08:00
parent de3ff211a6
commit 303216f918
3 changed files with 65 additions and 0 deletions

View File

@@ -125,6 +125,7 @@ DATABASES = {
'HOST': app_secrets.DATABASE_HOST,
'PASSWORD': app_secrets.DATABASE_PASSWORD,
'PORT': app_secrets.DATABASE_PORT,
'CONN_MAX_AGE': 600,
'OPTIONS': {
'charset': 'utf8mb4',
'init_command': "SET time_zone='+08:00'",