CP_EHRENAMT/gunicorn.conf.py

19 lines
505 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""gunicorn-Konfiguration für CheckPoint Ehrenamt.
Start (über systemd, siehe deploy/checkpoint.service):
gunicorn -c gunicorn.conf.py wsgi:app
"""
# Nur lokal lauschen nginx ist der öffentliche Eingang (Reverse Proxy).
bind = "0.0.0.0:8000"
# Klein halten: 17 Nutzer, ein VPS. Mehrere Worker sind dank SQLite-WAL ok.
workers = 3
threads = 2
worker_class = "gthread"
timeout = 60
# Logs an stdout/stderr → systemd/journald fängt sie auf.
accesslog = "-"
errorlog = "-"
loglevel = "info"