Commit | Line | Data |
---|---|---|
3edf7201 WP |
1 | # Configuration for xorg_sentry. |
2 | ||
3 | from sentry.conf.server import * | |
4 | ||
5 | ||
6 | # Cleanup social_auth-related stuff | |
7 | # ================================= | |
8 | ||
9 | EXCLUDED_APPS = ('djcelery', 'kombu.transport.django', 'social_auth', 'django_social_auth_trello') | |
10 | INSTALLED_APPS = tuple(app for app in INSTALLED_APPS if app not in EXCLUDED_APPS) | |
11 | ||
12 | AUTHENTICATION_BACKENDS = ( | |
13 | 'sentry.utils.auth.EmailAuthBackend', | |
14 | ) | |
15 | ||
16 | TEMPLATE_CONTEXT_PROCESSORS = tuple( | |
17 | tcp for tcp in TEMPLATE_CONTEXT_PROCESSORS if 'social_auth' not in tcp) | |
18 | ||
19 | ||
20 | # Reading password | |
21 | # ================ | |
22 | ||
23 | import os.path | |
24 | ||
25 | CONF_ROOT = os.path.dirname(__file__) | |
26 | ||
27 | def get_password(filename): | |
28 | with open(os.path.join(CONF_ROOT, 'private', filename)) as f: | |
29 | return f.readline() | |
30 | ||
31 | ||
32 | # Actual configuration | |
33 | # ==================== | |
34 | ||
35 | DATABASES = { | |
36 | 'default': { | |
37 | # You can swap out the engine for MySQL easily by changing this value | |
38 | # to ``django.db.backends.mysql`` or to PostgreSQL with | |
39 | # ``django.db.backends.postgresql_psycopg2`` | |
40 | 'ENGINE': 'django.db.backends.mysql', | |
41 | 'NAME': 'sentry', | |
42 | 'USER': 'sentry', | |
43 | 'PASSWORD': get_password('mysql_key'), | |
44 | 'HOST': '', | |
45 | 'PORT': '', | |
46 | } | |
47 | } | |
48 | ||
49 | SENTRY_KEY = get_password('secret_key') | |
50 | ||
51 | # Set this to false to require authentication | |
52 | SENTRY_PUBLIC = True | |
53 | ||
54 | # You should configure the absolute URI to Sentry. It will attempt to guess it if you don't | |
55 | # but proxies may interfere with this. | |
56 | # SENTRY_URL_PREFIX = 'http://sentry.example.com' # No trailing slash! | |
57 | SENTRY_URL_PREFIX = 'https://errors.polytechnique.org' | |
58 | ||
59 | SENTRY_WEB_HOST = '0.0.0.0' | |
60 | SENTRY_WEB_PORT = 9000 | |
61 | SENTRY_WEB_OPTIONS = { | |
62 | 'workers': 3, # the number of gunicorn workers | |
63 | # 'worker_class': 'gevent', | |
64 | } | |
65 | ||
66 | # Mail server configuration | |
67 | ||
68 | # For more information check Django's documentation: | |
69 | # https://docs.djangoproject.com/en/1.3/topics/email/?from=olddocs#e-mail-backends | |
70 | ||
71 | EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' | |
72 | ||
73 | EMAIL_HOST = 'localhost' | |
74 | EMAIL_HOST_PASSWORD = '' | |
75 | EMAIL_HOST_USER = '' | |
76 | EMAIL_PORT = 25 | |
77 | EMAIL_USE_TLS = False | |
78 |