mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 22:50:26 +00:00
60 lines
1.7 KiB
Python
60 lines
1.7 KiB
Python
import os
|
|
basedir = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
# BASIC APP CONFIG
|
|
WTF_CSRF_ENABLED = True
|
|
SECRET_KEY = 'changeme'
|
|
LOG_LEVEL = 'DEBUG'
|
|
LOG_FILE = 'log.txt'
|
|
|
|
# TIMEOUT - for large zones
|
|
TIMEOUT = 10
|
|
|
|
# UPLOAD DIR
|
|
UPLOAD_DIR = os.path.join(basedir, 'upload')
|
|
|
|
# DATABASE CONFIG FOR MYSQL
|
|
DB_USER = 'powerdnsadmin'
|
|
DB_PASSWORD = 'powerdnsadminpassword'
|
|
DB_HOST = 'docker.for.mac.localhost'
|
|
DB_NAME = 'powerdnsadmin'
|
|
|
|
#MySQL
|
|
SQLALCHEMY_DATABASE_URI = 'mysql://'+DB_USER+':'+DB_PASSWORD+'@'+DB_HOST+'/'+DB_NAME
|
|
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
|
|
SQLALCHEMY_TRACK_MODIFICATIONS = True
|
|
|
|
# AUTHENTICATION CONFIG
|
|
BASIC_ENABLED = True
|
|
SIGNUP_ENABLED = True
|
|
|
|
## LDAP CONFIG
|
|
# LDAP_TYPE = 'ldap'
|
|
# 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'
|
|
## Additional options only if LDAP_TYPE=ldap
|
|
# LDAP_USERNAMEFIELD = 'uid'
|
|
# LDAP_FILTER = '(objectClass=inetorgperson)'
|
|
|
|
## GITHUB AUTHENTICATION
|
|
# GITHUB_OAUTH_ENABLE = False
|
|
# GITHUB_OAUTH_KEY = 'G0j1Q15aRsn36B3aD6nwKLiYbeirrUPU8nDd1wOC'
|
|
# GITHUB_OAUTH_SECRET = '0WYrKWePeBDkxlezzhFbDn1PBnCwEa0vCwVFvy6iLtgePlpT7WfUlAa9sZgm'
|
|
# GITHUB_OAUTH_SCOPE = 'email'
|
|
# GITHUB_OAUTH_URL = 'http://127.0.0.1:5000/api/v3/'
|
|
# GITHUB_OAUTH_TOKEN = 'http://127.0.0.1:5000/oauth/token'
|
|
# GITHUB_OAUTH_AUTHORIZE = 'http://127.0.0.1:5000/oauth/authorize'
|
|
|
|
# POWERDNS CONFIG
|
|
PDNS_STATS_URL = 'http://192.168.100.100:8081/'
|
|
PDNS_API_KEY = 'changeme'
|
|
PDNS_VERSION = '4.1.1'
|
|
|
|
# RECORDS ALLOWED TO EDIT
|
|
RECORDS_ALLOW_EDIT = ['A', 'AAAA', 'CNAME', 'SPF', 'PTR', 'MX', 'TXT']
|
|
|
|
# EXPERIMENTAL FEATURES
|
|
PRETTY_IPV6_PTR = False
|