docker-pdns/pdns-admin-uwsgi-0x97/config.py.tpl
Peter Schiffer 93e367b668
Move 0x97 pdsnadmin to separate folders
The docker image names will stay with the same tag. Delete alpine version of
pdns-admin-uwsgi as it was broken.
2018-11-20 00:18:29 +01:00

14 lines
512 B
Smarty

import os
basedir = os.path.abspath(os.path.dirname(__file__))
{% for key, value in environment('PDNS_ADMIN_') %}{{ key }} = {{ value }}
{% endfor %}
WTF_CSRF_ENABLED = True
BIND_ADDRESS = '0.0.0.0'
PORT = 9393
LOG_FILE = ''
UPLOAD_DIR = '/opt/powerdns-admin/upload'
SQLALCHEMY_DATABASE_URI = 'mysql://' + SQLA_DB_USER + ':' + SQLA_DB_PASSWORD + '@' + SQLA_DB_HOST + ':' + SQLA_DB_PORT + '/' + SQLA_DB_NAME
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
SQLALCHEMY_TRACK_MODIFICATIONS = True