Skip to content

Commit

Permalink
override gunicorn server header (#1705)
Browse files Browse the repository at this point in the history
* override gunicorn server header

* add comment

* change mypy fix

---------

Co-authored-by: Jumana B <[email protected]>
  • Loading branch information
sastels and jzbahrai authored Nov 8, 2023
1 parent 861c090 commit 25adbba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gunicorn_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 25adbba

Please sign in to comment.