Files
LOGIS/conf/gunicorn.conf.py.example
T
2026-05-28 23:43:20 +02:00

23 lines
521 B
Plaintext
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.
"""
Configuration Gunicorn pour LOGIS en production.
"""
# Adresse d'écoute (nginx fait le proxy depuis le port 80/443)
bind = '127.0.0.1:8091'
# Nombre de workers : (2 × CPU) + 1 est une heuristique classique
workers = 3
worker_class = 'sync'
timeout = 120
keepalive = 5
max_requests = 1000
max_requests_jitter = 50
# Journaux
accesslog = '/var/log/logis/gunicorn_access.log'
errorlog = '/var/log/logis/gunicorn_error.log'
loglevel = 'info'
capture_output = True
# Répertoire de travail
chdir = '/path/to/LOGIS'