mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
remove gunicorn server header
see https://github.com/alphagov/notifications-api/pull/2640 for more information
This commit is contained in:
@@ -2,11 +2,14 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
|
import gunicorn
|
||||||
|
|
||||||
workers = 5
|
workers = 5
|
||||||
worker_class = "eventlet"
|
worker_class = "eventlet"
|
||||||
errorlog = "/home/vcap/logs/gunicorn_error.log"
|
errorlog = "/home/vcap/logs/gunicorn_error.log"
|
||||||
bind = "0.0.0.0:{}".format(os.getenv("PORT"))
|
bind = "0.0.0.0:{}".format(os.getenv("PORT"))
|
||||||
disable_redirect_access_to_syslog = True
|
disable_redirect_access_to_syslog = True
|
||||||
|
gunicorn.SERVER_SOFTWARE = 'None'
|
||||||
|
|
||||||
|
|
||||||
def worker_abort(worker):
|
def worker_abort(worker):
|
||||||
|
|||||||
Reference in New Issue
Block a user