fix(nginx): Fix proxy settings for Sentry (#463)
Fixes #447. This patch should also fix issuer regarding large uploads such as minidumps by turning off any buffering.
This commit is contained in:
parent
4040e68267
commit
74c0d4c257
@ -18,7 +18,6 @@ http {
|
|||||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||||
|
|
||||||
sendfile on;
|
sendfile on;
|
||||||
|
|
||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
|
|
||||||
upstream relay {
|
upstream relay {
|
||||||
@ -34,6 +33,10 @@ http {
|
|||||||
# use the docker DNS server to resolve ips for relay and sentry containers
|
# use the docker DNS server to resolve ips for relay and sentry containers
|
||||||
resolver 127.0.0.11 ipv6=off;
|
resolver 127.0.0.11 ipv6=off;
|
||||||
client_max_body_size 100M;
|
client_max_body_size 100M;
|
||||||
|
|
||||||
|
proxy_redirect off;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
|
||||||
location /api/store/ {
|
location /api/store/ {
|
||||||
proxy_pass http://relay;
|
proxy_pass http://relay;
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,9 @@ SENTRY_USE_BIG_INTS = True
|
|||||||
# and thus various UI optimizations should be enabled.
|
# and thus various UI optimizations should be enabled.
|
||||||
SENTRY_SINGLE_ORGANIZATION = True
|
SENTRY_SINGLE_ORGANIZATION = True
|
||||||
|
|
||||||
SENTRY_OPTIONS["system.event-retention-days"] = int(env('SENTRY_EVENT_RETENTION_DAYS', '90'))
|
SENTRY_OPTIONS["system.event-retention-days"] = int(
|
||||||
|
env('SENTRY_EVENT_RETENTION_DAYS', '90')
|
||||||
|
)
|
||||||
|
|
||||||
#########
|
#########
|
||||||
# Redis #
|
# Redis #
|
||||||
@ -153,12 +155,6 @@ SENTRY_DIGESTS = "sentry.digests.backends.redis.RedisBackend"
|
|||||||
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 needed to prevent https://git.io/fj7Lw
|
|
||||||
"uwsgi-socket": None,
|
|
||||||
"http-keepalive": True,
|
|
||||||
"http-chunked-input": True,
|
|
||||||
"memory-report": False,
|
"memory-report": False,
|
||||||
# 'workers': 3, # the number of web workers
|
# 'workers': 3, # the number of web workers
|
||||||
}
|
}
|
||||||
@ -220,4 +216,3 @@ GITHUB_EXTENDED_PERMISSIONS = ['repo']
|
|||||||
|
|
||||||
# BITBUCKET_CONSUMER_KEY = 'YOUR_BITBUCKET_CONSUMER_KEY'
|
# BITBUCKET_CONSUMER_KEY = 'YOUR_BITBUCKET_CONSUMER_KEY'
|
||||||
# BITBUCKET_CONSUMER_SECRET = 'YOUR_BITBUCKET_CONSUMER_SECRET'
|
# BITBUCKET_CONSUMER_SECRET = 'YOUR_BITBUCKET_CONSUMER_SECRET'
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user