-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsentry_config.py
More file actions
77 lines (59 loc) · 1.89 KB
/
sentry_config.py
File metadata and controls
77 lines (59 loc) · 1.89 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import os
from sentry.conf.server import *
DEBUG = False
TEMPLATE_DEBUG = DEBUG
DATABASES = {
'default': {
'ENGINE':'django.db.backends.postgresql_psycopg2',
'NAME': os.environ.get('DB_NAME'),
'USER': os.environ.get('DB_USERNAME'),
'PASSWORD': os.environ.get('DB_PASSWORD'),
'HOST': os.environ.get('DB_HOSTNAME'),
'PORT': '5432',
}
}
SENTRY_KEY = os.environ.get('SENTRY_KEY')
SENTRY_URL_PREFIX = 'https://sentry.tracy.com.br'
SENTRY_WEB_HOST = '0.0.0.0'
SENTRY_WEB_PORT = 443
SENTRY_WEB_OPTIONS = {
'workers': 2, # the number of gunicorn workers
'worker_class': 'gevent',
'max_requests': 1000, # number of reqs before worker restart
'secure_scheme_headers': {'X-FORWARDED-PROTO': 'https'},
'certfile': 'ssl/sentry.crt',
'keyfile': 'ssl/sentry.key',
}
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
}
}
SENTRY_CACHE_BACKEND = 'default'
SENTRY_ALLOW_REGISTRATION = False
SOCIAL_AUTH_CREATE_USERS = False
SOCIAL_AUTH_REDIRECT_IS_HTTPS = True
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
USE_X_FORWARDED_HOST = True
GITHUB_APP_ID = os.environ.get('GITHUB_APP_ID')
GITHUB_API_SECRET = os.environ.get('GITHUB_API_SECRET')
GITHUB_EXTENDED_PERMISSIONS = ['repo']
DEFAULT_FROM_EMAIL = 'Tracy Logging Service <noreply@tracy.com.br>'
SERVER_EMAIL = DEFAULT_FROM_EMAIL
EMAIL_HOST = os.environ.get('EMAIL_HOST')
EMAIL_PORT = os.environ.get('EMAIL_PORT')
EMAIL_HOST_USER =os.environ.get('EMAIL_HOST_USER')
EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD')
EMAIL_USE_TLS = True
ALLOWED_HOSTS = ('sentry.tracy.com.br', )
SENTRY_REDIS_OPTIONS = {
'hosts': {
0: {
'host': '127.0.0.1',
'port': 6379,
'timeout': 3,
#'password': 'redis auth password'
}
}
}