-
Notifications
You must be signed in to change notification settings - Fork 1
/
sentry.conf.py
47 lines (37 loc) · 1.08 KB
/
sentry.conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from os import environ
from urlparse import urlparse
import dj_database_url
# default configuration
from sentry.conf.server import *
DATABASES = {
'default': dj_database_url.config(default='postgres://localhost/y-sentry')
}
# No trailing slash!
# The sentry service base url http://sentry.example.com
SENTRY_URL_PREFIX = environ.get('SENTRY_URL_PREFIX', '')
# Random secret key
SENTRY_KEY = environ.get('SENTRY_KEY', '')
# Web Service
SENTRY_WEB_HOST = 'localhost'
SENTRY_WEB_PORT = 9000
SENTRY_WEB_OPTIONS = {
'workers': 3,
'limit_request_line': 0, # required for raven-js
}
# HTTPS
# SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
# Redis backend
REDIS = urlparse.urlparse(environ.get('REDISCLOUD_URL', 'redis://localhost:6379'))
SENTRY_REDIS_OPTIONS = {
'hosts': {
0: {
'host': REDIS.hostname,
'port': REDIS.port,
'password': REDIS.password,
}
}
}
# Mailing
MANDRILL_API_KEY = environ.get('MANDRILL_APIKEY', '')
EMAIL_BACKEND = 'djrill.mail.backends.djrill.DjrillBackend'
EMAIL_SUBJECT_PREFIX = '[Sentry] '