Merge pull request #1884 from GSA/fix-gunicorn-config

Attempt to fix gunicorn config
This commit is contained in:
ccostino
2025-07-31 12:27:41 -04:00
committed by GitHub

View File

@@ -1,20 +1,14 @@
# import logging
import os # noqa
import socket # noqa
import sys # noqa
import traceback # noqa
import gunicorn
from app.utils import hilite # noqa
import gunicorn # noqa
# This will give us a better stack trace if
workers = 4
worker_class = "gevent"
worker_connections = 256
# logging.basicConfig(level=logging.INFO)
# timeout = 240
# logging.info(hilite(f"Gunicorn timeout set to {timeout} seconds"))
bind = "0.0.0.0:{}".format(os.getenv("PORT"))
statsd_host = "{}:8125".format(os.getenv("STATSD_HOST"))
gunicorn.SERVER_SOFTWARE = "None"