Skip to content

Commit

Permalink
Remove server from response
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbahrai committed Nov 7, 2023
1 parent e461edc commit 4f01a92
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gunicorn_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import sys
import traceback

import gunicorn
import newrelic.agent # See https://bit.ly/2xBVKBH

newrelic.agent.initialize() # noqa: E402
Expand All @@ -11,6 +12,8 @@
worker_connections = 256
bind = "0.0.0.0:{}".format(os.getenv("PORT"))
accesslog = "-"
# Guincorn sets the server type on our app. We don't want to show it in the header in the response.
gunicorn.SERVER = "Undisclosed"

on_aws = os.environ.get("NOTIFY_ENVIRONMENT", "") in ["production", "staging", "scratch", "dev"]
if on_aws:
Expand Down

0 comments on commit 4f01a92

Please sign in to comment.