From ec867c04c2f8ba7ff05f212ae71ffd96bc105ab5 Mon Sep 17 00:00:00 2001 From: Leo Hemsted Date: Wed, 23 Oct 2019 13:02:41 +0100 Subject: [PATCH] remove gunicorn server header see https://github.com/alphagov/notifications-api/pull/2640 for more information --- gunicorn_config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gunicorn_config.py b/gunicorn_config.py index 1d3ed63242..c3ed8707d8 100644 --- a/gunicorn_config.py +++ b/gunicorn_config.py @@ -2,11 +2,14 @@ import sys import traceback +import gunicorn + workers = 5 worker_class = "eventlet" errorlog = "/home/vcap/logs/gunicorn_error.log" bind = "0.0.0.0:{}".format(os.getenv("PORT")) disable_redirect_access_to_syslog = True +gunicorn.SERVER_SOFTWARE = 'None' def worker_abort(worker):