Skip to content

Commit

Permalink
Merge branch 'main' into feat/secure-api-revocation-route
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbahrai authored Nov 8, 2023
2 parents 0bc2085 + ccaa0ba commit d4f2541
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 # type: ignore
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 d4f2541

Please sign in to comment.