44 lines
1.6 KiB
Django/Jinja
44 lines
1.6 KiB
Django/Jinja
# -*- mode: python; coding: utf-8 -*-
|
|
{{ ansible_header | comment }}
|
|
|
|
# A secret key used by the server.
|
|
SECRET_KEY = '{{ constellation.django_secret_key }}'
|
|
|
|
# Should the server run in debug mode ?
|
|
# SECURITY WARNING: don't run with debug turned on in production!
|
|
DEBUG = {{ constellation.debug }}
|
|
|
|
# A list of admins of the services. Receive mails when an error occurs
|
|
ADMINS = [{% for admin in constellation.admins %}{{ admin }}, {% endfor %}]
|
|
|
|
# The list of hostname the server will respond to.
|
|
ALLOWED_HOSTS = [{% for host in constellation.allowed_hosts %}'{{ host }}', {% endfor %}]
|
|
|
|
# The time zone the server is runned in
|
|
TIME_ZONE = 'Europe/Paris'
|
|
|
|
# The storage systems parameters to use
|
|
DATABASES = {
|
|
'default': { # The DB
|
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
|
'NAME': '{{ constellation.database.name }}',
|
|
'USER': '{{ constellation.database.user }}',
|
|
'PASSWORD': '{{ constellation.database.password }}',
|
|
'HOST': '{{ constellation.database.host }}',
|
|
'PORT': '{{ constellation.database.port }}',
|
|
},
|
|
}
|
|
|
|
# The mail configuration for Constellation to send mails
|
|
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
|
EMAIL_USE_SSL = {{ constellation.email.ssl }}
|
|
EMAIL_HOST = '{{ constellation.email.host }}'
|
|
EMAIL_PORT = {{ constellation.email.port }}
|
|
EMAIL_HOST_USER = '{{ constellation.email.user }}'
|
|
EMAIL_HOST_PASSWORD = '{{ constellation.email.password }}'
|
|
SERVER_EMAIL = '{{ constellation.email.from }}'
|
|
DEFAULT_FROM_EMAIL = '{{ constellation.email.from_full }}'
|
|
|
|
COMNPAY_ID_TPE = '{{ constellation.comnpay.tpe }}'
|
|
COMNPAY_SECRET_KEY = '{{ constellation.comnpay.secret }}'
|