mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 23:41:17 -05:00
Merge pull request #2640 from alphagov/remove-gunicorn-header
remove gunicorn server header from responses
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
|
import gunicorn
|
||||||
|
|
||||||
workers = 4
|
workers = 4
|
||||||
worker_class = "eventlet"
|
worker_class = "eventlet"
|
||||||
@@ -9,6 +10,7 @@ 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"))
|
||||||
statsd_host = "{}:8125".format(os.getenv("STATSD_HOST"))
|
statsd_host = "{}:8125".format(os.getenv("STATSD_HOST"))
|
||||||
statsd_prefix = os.getenv("STATSD_PREFIX")
|
statsd_prefix = os.getenv("STATSD_PREFIX")
|
||||||
|
gunicorn.SERVER_SOFTWARE = 'None'
|
||||||
|
|
||||||
|
|
||||||
def on_starting(server):
|
def on_starting(server):
|
||||||
|
|||||||
Reference in New Issue
Block a user