Skip to content

Commit

Permalink
Update Sentry settings for v.8
Browse files Browse the repository at this point in the history
  • Loading branch information
slafs committed Jan 24, 2016
1 parent a7cfbaf commit 553ceaf
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions sentry_docker_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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 ##
###########
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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 ##
Expand Down

0 comments on commit 553ceaf

Please sign in to comment.