File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+
2+ import os
3+ import json
4+
5+ from custom_settings import *
6+
7+ SECRETS_FILE = '/home/colab/colab/secrets.json'
8+
9+ if os .path .exists (SECRETS_FILE ):
10+ secrets = json .load (file (SECRETS_FILE ))
11+
12+ DEBUG = False
13+ TEMPLATE_DEBUG = DEBUG
14+
15+ ADMINS = (
16+ ('Name Surname' , 'email@provider.com' ),
17+ )
18+ MANAGERS = ADMINS
19+
20+ COLAB_FROM_ADDRESS = '"Colab" <noreply@domain.com>'
21+ SERVER_EMAIL = COLAB_FROM_ADDRESS
22+ EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
23+ EMAIL_HOST = ''
24+ EMAIL_PORT = 25
25+ EMAIL_SUBJECT_PREFIX = ''
26+
27+ # Make this unique, and don't share it with anybody.
28+ SECRET_KEY = secrets .get ('SECRET_KEY' )
29+
30+ SITE_URL = ''
31+ ALLOWED_HOSTS = []
32+
33+ # XMPP Server
34+ CONVERSEJS_AUTO_REGISTER = ''
35+
36+ DATABASES ['default' ]['PASSWORD' ] = secrets .get ('COLAB_DB_PWD' )
37+ DATABASES ['default' ]['HOST' ] = 'localhost'
38+
39+ DATABASES ['trac' ] = 'trac_colab'
40+ DATABASES ['trac' ]['PASSWORD' ] = secrets .get ('TRAC_DB_PWD' )
41+ DATABASES ['trac' ]['HOST' ] = 'localhost'
42+
43+ HAYSTACK_CONNECTIONS ['default' ]['URL' ] = 'http://localhost:8983/solr/'
44+
45+ COLAB_TRAC_URL = 'http://localhost:5000/trac/'
46+ COLAB_GITLAB_URL = 'http://localhost:8090/gitlab/'
47+
48+ CONVERSEJS_ENABLED = False
49+
50+ ROBOTS_NOINDEX = False
51+
52+ RAVEN_CONFIG = {
53+ 'dsn' : secrets .get ('RAVEN_DSN' , '' ) + '?timeout=30' ,
54+ }
You can’t perform that action at this time.
0 commit comments