From 25adbbae24ee5ae0becd258e315eb89c9cf4742d Mon Sep 17 00:00:00 2001 From: Steve Astels Date: Wed, 8 Nov 2023 11:40:41 -0500 Subject: [PATCH] override gunicorn server header (#1705) * override gunicorn server header * add comment * change mypy fix --------- Co-authored-by: Jumana B --- gunicorn_config.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gunicorn_config.py b/gunicorn_config.py index ab42456125..2808bf71e1 100644 --- a/gunicorn_config.py +++ b/gunicorn_config.py @@ -2,10 +2,15 @@ import sys import traceback +import gunicorn # type: ignore + import newrelic.agent # See https://bit.ly/2xBVKBH newrelic.agent.initialize() # noqa: E402 +# Guincorn sets the server type on our app. We don't want to show it in the header in the response. +gunicorn.SERVER = 'Undisclosed' + workers = 5 worker_class = "gevent" bind = "0.0.0.0:{}".format(os.getenv("PORT"))