mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 14:40:27 +00:00
ab4495dc46
Completed the implementation of the aforementioned environment setting into the OAuth workflows. Documented the aforementioned setting in the Environment-variables.md wiki document.
45 lines
1.0 KiB
Python
45 lines
1.0 KiB
Python
import os
|
|
import urllib.parse
|
|
basedir = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
### BASIC APP CONFIG
|
|
SALT = '$2b$12$yLUMTIfl21FKJQpTkRQXCu'
|
|
SECRET_KEY = 'e951e5a1f4b94151b360f47edf596dd2'
|
|
BIND_ADDRESS = '0.0.0.0'
|
|
PORT = 9191
|
|
HSTS_ENABLED = False
|
|
SERVER_EXTERNAL_SSL = None
|
|
|
|
SESSION_TYPE = 'sqlalchemy'
|
|
SESSION_COOKIE_SAMESITE = 'Lax'
|
|
CSRF_COOKIE_HTTPONLY = True
|
|
|
|
#CAPTCHA Config
|
|
CAPTCHA_ENABLE = True
|
|
CAPTCHA_LENGTH = 6
|
|
CAPTCHA_WIDTH = 160
|
|
CAPTCHA_HEIGHT = 60
|
|
CAPTCHA_SESSION_KEY = 'captcha_image'
|
|
|
|
### DATABASE CONFIG
|
|
SQLA_DB_USER = 'pda'
|
|
SQLA_DB_PASSWORD = 'changeme'
|
|
SQLA_DB_HOST = '127.0.0.1'
|
|
SQLA_DB_NAME = 'pda'
|
|
SQLALCHEMY_TRACK_MODIFICATIONS = True
|
|
|
|
### DATABASE - MySQL
|
|
# SQLALCHEMY_DATABASE_URI = 'mysql://{}:{}@{}/{}'.format(
|
|
# urllib.parse.quote_plus(SQLA_DB_USER),
|
|
# urllib.parse.quote_plus(SQLA_DB_PASSWORD),
|
|
# SQLA_DB_HOST,
|
|
# SQLA_DB_NAME
|
|
# )
|
|
|
|
### DATABASE - SQLite
|
|
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'pdns.db')
|
|
|
|
# SAML Authnetication
|
|
SAML_ENABLED = False
|
|
SAML_ASSERTION_ENCRYPTED = True
|