-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconfd_settings.py
More file actions
32 lines (26 loc) · 1.07 KB
/
confd_settings.py
File metadata and controls
32 lines (26 loc) · 1.07 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
# security keys and auth tokens
SECRET_KEY = "{{ .deis_controller_secretKey }}"
BUILDER_KEY = "{{ .deis_controller_builderKey }}"
# registry settings
REGISTRY_URL = \
"{{ .deis_registry_protocol }}://{{ .deis_registry_host }}:{{ .deis_registry_port }}"
# the config management module to use in api.models
CM_MODULE = "{{ .deis_controller_cmModule }}"
# default to sqlite3, but allow postgresql config through envvars
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.' + "{{ .deis_database_engine }}",
'NAME': "{{ .deis_database_name }}",
'USER': "{{ .deis_database_user }}",
'PASSWORD': "{{ .deis_database_password }}",
'HOST': "{{ .deis_database_host }}",
'PORT': "{{ .deis_database_port }}",
}
}
# configure cache
BROKER_URL = 'redis://{{ .deis_cache_host }}:{{ .deis_cache_port }}/0'
CELERY_RESULT_BACKEND = BROKER_URL
# move log directory out of /app/deis
DEIS_LOG_DIR = '/app/logs'
# specify which provider API modules to load
PROVIDER_MODULES = ('mock', 'digitalocean', 'ec2', 'rackspace', 'vagrant', 'static')