Skip to content

Commit f47d44f

Browse files
authored
Merge pull request RedHatInsights#31 from jameswnl/worker
Added env GUNICORN_WORKER to open up for other worker_class
2 parents 19eb279 + d2d6d48 commit f47d44f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
bind = '127.0.0.1:8000'
55

66
workers = int(os.environ.get('GUNICORN_PROCESSES', '3'))
7-
threads = int(os.environ.get('GUNICORN_THREADS', '1'))
8-
timeout = 120
7+
worker_class = os.environ.get('GUNICORN_WORKER', 'gthread')
98

109
forwarded_allow_ips = '*'
1110
secure_scheme_headers = {'X-Forwarded-Proto': 'https'}

0 commit comments

Comments
 (0)