sampleplayer/gunicorn_config.py

15 lines
325 B
Python
Raw Normal View History

2024-05-19 13:11:57 +00:00
import os
workers = int(os.environ.get("GUNICORN_PROCESSES", "2"))
threads = int(os.environ.get("GUNICORN_THREADS", "4"))
# timeout = int(os.environ.get('GUNICORN_TIMEOUT', '120'))
bind = os.environ.get("GUNICORN_BIND", "0.0.0.0:8080")
forwarded_allow_ips = "*"
#secure_scheme_headers = {"X-Forwarded-Proto": "https"}