-
Notifications
You must be signed in to change notification settings - Fork 2
/
local_settings.py.example
35 lines (27 loc) · 1.01 KB
/
local_settings.py.example
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
# Setting Overrides
# See readthedocs/settings/*.py for settings that need to be modified
import os
# Set this to the root domain where this RTD installation will be running
PRODUCTION_DOMAIN = os.getenv('RTD_PRODUCTION_DOMAIN', 'localhost:8000')
# Set the Slumber API host
SLUMBER_API_HOST = os.getenv('RTD_SLUMBER_API_HOST', "http://" + PRODUCTION_DOMAIN)
# Turn off email verification
ACCOUNT_EMAIL_VERIFICATION = 'none'
# Enable private Git doc repositories
ALLOW_PRIVATE_REPOS = True
# Disable email for an account
ACCOUNT_EMAIL_REQUIRED = False
# Don't bother caring about email for auth
ACCOUNT_AUTHENTICATION_METHOD = "username"
# Define where are our database lives
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join("/persistent", 'dev.db'),
}
}
# Configure the services that are setup through docker-compose.
ES_HOSTS = ['elasticsearch:9200']
BROKER_URL = 'redis://redis:6379/0'
CELERY_RESULT_BACKEND = 'redis://redis:6379/0'
CELERY_ALWAYS_EAGER = True