From a8a15ace821a0bdaaaaa180cd9462415b215a9ce Mon Sep 17 00:00:00 2001 From: Jim Shaver Date: Tue, 16 Aug 2016 22:04:40 +0000 Subject: [PATCH] Simply Docker config --- config_template.py | 2 ++ config_template_docker.py | 67 --------------------------------------- 2 files changed, 2 insertions(+), 67 deletions(-) delete mode 100644 config_template_docker.py diff --git a/config_template.py b/config_template.py index e0e18e3..65b9960 100644 --- a/config_template.py +++ b/config_template.py @@ -14,6 +14,8 @@ TIMEOUT = 10 # LOG CONFIG LOG_LEVEL = 'DEBUG' LOG_FILE = 'logfile.log' +# For Docker, set the following +#LOG_FILE = '/dev/stdout' # Upload UPLOAD_DIR = os.path.join(basedir, 'upload') diff --git a/config_template_docker.py b/config_template_docker.py deleted file mode 100644 index 032a225..0000000 --- a/config_template_docker.py +++ /dev/null @@ -1,67 +0,0 @@ -import os -basedir = os.path.abspath(os.path.dirname(__file__)) - -# BASIC APP CONFIG -WTF_CSRF_ENABLED = True -SECRET_KEY = 'We are the world' -BIND_ADDRESS = '0.0.0.0' -PORT = 9393 -LOGIN_TITLE = "PDNS" - -# TIMEOUT - for large zones -TIMEOUT = 10 - -# LOG CONFIG -LOG_LEVEL = 'DEBUG' -LOG_FILE = '/dev/stdout' - -# Upload -UPLOAD_DIR = os.path.join(basedir, 'upload') - -# DATABASE CONFIG -#You'll need MySQL-python -SQLA_DB_USER = 'powerdnsadmin' -SQLA_DB_PASSWORD = 'powerdnsadminpassword' -SQLA_DB_HOST = 'mysqlhostorip' -SQLA_DB_NAME = 'powerdnsadmin' - -#MySQL -SQLALCHEMY_DATABASE_URI = 'mysql://'+SQLA_DB_USER+':'\ - +SQLA_DB_PASSWORD+'@'+SQLA_DB_HOST+'/'+SQLA_DB_NAME -#SQLite -#SQLALCHEMY_DATABASE_URI = 'sqlite:////path/to/your/pdns.db' -SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository') -SQLALCHEMY_TRACK_MODIFICATIONS = 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)' - -## AD CONFIG -#LDAP_TYPE = 'ad' -#LDAP_URI = 'ldaps://your-ad-server:636' -#LDAP_USERNAME = 'cn=dnsuser,ou=Users,dc=domain,dc=local' -#LDAP_PASSWORD = 'dnsuser' -#LDAP_SEARCH_BASE = 'dc=domain,dc=local' -## You may prefer 'userPrincipalName' instead -#LDAP_USERNAMEFIELD = 'sAMAccountName' -## AD Group that you would like to have accesss to web app -#LDAP_FILTER = 'memberof=cn=DNS_users,ou=Groups,dc=domain,dc=local' - -#Default Auth -BASIC_ENABLED = True -SIGNUP_ENABLED = True - -# POWERDNS CONFIG -PDNS_STATS_URL = 'http://powerdns-server:8081' -PDNS_API_KEY = 'PowerDNSAPIKey' -PDNS_VERSION = '4.0.0' - -# RECORDS ALLOWED TO EDIT -RECORDS_ALLOW_EDIT = ['A', 'AAAA', 'CNAME', 'SPF', 'PTR', 'MX', 'TXT']