powerdns-admin/config_template.py

38 lines
992 B
Python
Raw Normal View History

2015-12-13 09:34:12 +00:00
import os
basedir = os.path.abspath(os.path.dirname(__file__))
# BASIC APP CONFIG
WTF_CSRF_ENABLED = True
SECRET_KEY = 'We are the world'
2016-04-13 04:13:59 +00:00
BIND_ADDRESS = '127.0.0.1'
2015-12-14 09:38:47 +00:00
PORT = 9393
2015-12-13 09:34:12 +00:00
# TIMEOUT - for large zones
TIMEOUT = 10
2015-12-13 09:34:12 +00:00
# LOG CONFIG
LOG_LEVEL = 'DEBUG'
LOG_FILE = 'logfile.log'
# Upload
UPLOAD_DIR = os.path.join(basedir, 'upload')
2015-12-13 09:34:12 +00:00
# DATABASE CONFIG
SQLALCHEMY_DATABASE_URI = 'mysql://root:123456@192.168.59.103/pdns'
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
SQLALCHEMY_TRACK_MODIFICATIONS = True
# LDAP CONFIG
2016-04-13 04:13:59 +00:00
LDAP_TYPE = 'ldap' # use 'ad' for MS Active Directory
2015-12-13 09:34:12 +00:00
LDAP_URI = 'ldaps://your-ldap-server:636'
LDAP_USERNAME = 'cn=dnsuser,ou=users,ou=services,dc=duykhanh,dc=me'
LDAP_PASSWORD = 'dnsuser'
LDAP_SEARCH_BASE = 'ou=System Admins,ou=People,dc=duykhanh,dc=me'
# POWERDNS CONFIG
PDNS_STATS_URL = 'http://172.16.214.131:8081/'
PDNS_API_KEY = 'you never know'
# RECORDS ALLOWED TO EDIT
RECORDS_ALLOW_EDIT = ['A', 'AAAA', 'CNAME', 'SPF', 'PTR', 'MX', 'TXT']