2
0

fix(uwsgi): Fix broken uWSGI config (#237)

This patch introduces the following fixes to uWSGI config which
was not set up correctly to be used publicly (not behind a router,
load balancer, proxy like nginx etc.):

 - Use `http` option for a front-proxy
 - Set protocol back to `uwsgi` due to above
 - Prevent forced socket binding to `uwsgi` due to protocol change
 above (https://git.io/fj7Lw)
 - Turn on "keep-alive" support

Should fix getsentry/sentry-cli#40.
This commit is contained in:
Burak Yigit Kaya 2019-08-13 02:38:12 +03:00 committed by GitHub
parent 263acda90b
commit 4fade2fb1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -259,11 +259,16 @@ if env('SENTRY_USE_SSL', False):
SENTRY_WEB_HOST = '0.0.0.0' SENTRY_WEB_HOST = '0.0.0.0'
SENTRY_WEB_PORT = 9000 SENTRY_WEB_PORT = 9000
SENTRY_WEB_OPTIONS = { SENTRY_WEB_OPTIONS = {
'http': '%s:%s' % (SENTRY_WEB_HOST, SENTRY_WEB_PORT),
'protocol': 'uwsgi',
# This is need to prevent https://git.io/fj7Lw
'uwsgi-socket': None,
'http-keepalive': True,
'memory-report': False,
# 'workers': 3, # the number of web workers # 'workers': 3, # the number of web workers
} }
########## ##########
# Docker # # Docker #
########## ##########