feat: The Other Dude v9.0.1 — full-featured email system
ci: add GitHub Pages deployment workflow for docs site Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
30
backend/gunicorn.conf.py
Normal file
30
backend/gunicorn.conf.py
Normal file
@@ -0,0 +1,30 @@
|
||||
"""Gunicorn configuration for production deployment.
|
||||
|
||||
Uses UvicornWorker for async support under gunicorn's process management.
|
||||
Worker count and timeouts are configurable via environment variables.
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
# Server socket
|
||||
bind = os.getenv("GUNICORN_BIND", "0.0.0.0:8000")
|
||||
|
||||
# Worker processes
|
||||
workers = int(os.getenv("GUNICORN_WORKERS", "2"))
|
||||
worker_class = "uvicorn.workers.UvicornWorker"
|
||||
|
||||
# Timeouts
|
||||
graceful_timeout = int(os.getenv("GUNICORN_GRACEFUL_TIMEOUT", "30"))
|
||||
timeout = int(os.getenv("GUNICORN_TIMEOUT", "120"))
|
||||
keepalive = int(os.getenv("GUNICORN_KEEPALIVE", "5"))
|
||||
|
||||
# Logging -- use stdout/stderr for Docker log collection
|
||||
accesslog = "-"
|
||||
errorlog = "-"
|
||||
loglevel = os.getenv("LOG_LEVEL", "info")
|
||||
|
||||
# Process naming
|
||||
proc_name = "mikrotik-api"
|
||||
|
||||
# Preload application for faster worker spawning (shared memory for code)
|
||||
preload_app = True
|
||||
Reference in New Issue
Block a user