From 553ceaf3419d0d4171c1ae411ee63fed0695b456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awek=20Ehlert?= Date: Sun, 24 Jan 2016 22:45:56 +0100 Subject: [PATCH] Update Sentry settings for v.8 --- sentry_docker_conf.py | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/sentry_docker_conf.py b/sentry_docker_conf.py index ae80b3d..82af71b 100644 --- a/sentry_docker_conf.py +++ b/sentry_docker_conf.py @@ -20,9 +20,13 @@ } if 'postgres' in DATABASES['default']['ENGINE']: - DATABASES['default']['OPTIONS'] = { - 'autocommit': True, - } + DATABASES['default']['ENGINE'] = 'sentry.db.postgres' + +# You should not change this setting after your database has been created +# unless you have altered all schemas first +SENTRY_USE_BIG_INTS = config('SENTRY_USE_BIG_INTS', default=False, cast=bool) + +SENTRY_SINGLE_ORGANIZATION = config('SENTRY_SINGLE_ORGANIZATION', default=True, cast=bool) CACHES = {'default': django_cache_url.config() } SENTRY_CACHE = 'sentry.cache.django.DjangoCache' @@ -46,6 +50,15 @@ def nydus_config(from_env_var): } +############################ +# General Sentry options ## +############################ +SENTRY_OPTIONS = { + # You MUST configure the absolute URI root for Sentry: + 'system.url-prefix': config('SENTRY_URL_PREFIX'), + 'system.admin-email': config('SENTRY_ADMIN_EMAIL', default='root@localhost'), +} + ########### # Queue ## ########### @@ -101,9 +114,6 @@ def nydus_config(from_env_var): # Web Server ## ################ -# You MUST configure the absolute URI root for Sentry: -SENTRY_URL_PREFIX = config('SENTRY_URL_PREFIX') # No trailing slash! - # If you're using a reverse proxy, you should enable the X-Forwarded-Proto # and X-Forwarded-Host headers, and uncomment the following settings SECURE_PROXY_SSL_HEADER = config('SENTRY_SECURE_PROXY_SSL_HEADER', default=None, cast=lambda x: tuple(x.split(',')) if x else None) @@ -180,7 +190,6 @@ def nydus_config(from_env_var): LOGGING['disable_existing_loggers'] = False SENTRY_BEACON = config('SENTRY_BEACON', default=True, cast=bool) -SENTRY_ADMIN_EMAIL = config('SENTRY_ADMIN_EMAIL', default='root@localhost') #################### # LDAP settings ##