2019-12-02 03:32:03 +00:00
|
|
|
import os
|
2023-04-14 11:12:02 +00:00
|
|
|
|
2021-11-10 10:29:01 +00:00
|
|
|
basedir = os.path.abspath(os.path.dirname(__file__))
|
2019-12-02 03:32:03 +00:00
|
|
|
|
|
|
|
BIND_ADDRESS = '0.0.0.0'
|
2023-02-19 00:18:59 +00:00
|
|
|
CAPTCHA_ENABLE = True
|
|
|
|
CAPTCHA_HEIGHT = 60
|
2023-04-14 11:12:02 +00:00
|
|
|
CAPTCHA_LENGTH = 6
|
2023-02-19 00:18:59 +00:00
|
|
|
CAPTCHA_SESSION_KEY = 'captcha_image'
|
2023-04-14 11:12:02 +00:00
|
|
|
CAPTCHA_WIDTH = 160
|
|
|
|
CSRF_COOKIE_HTTPONLY = True
|
|
|
|
HSTS_ENABLED = False
|
|
|
|
PORT = 9191
|
|
|
|
SALT = '$2b$12$yLUMTIfl21FKJQpTkRQXCu'
|
|
|
|
SAML_ASSERTION_ENCRYPTED = True
|
|
|
|
SAML_ENABLED = False
|
|
|
|
SECRET_KEY = 'e951e5a1f4b94151b360f47edf596dd2'
|
|
|
|
SERVER_EXTERNAL_SSL = os.getenv('SERVER_EXTERNAL_SSL', True)
|
|
|
|
SESSION_COOKIE_SAMESITE = 'Lax'
|
|
|
|
SESSION_TYPE = 'sqlalchemy'
|
|
|
|
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'pdns.db')
|
2019-12-02 03:32:03 +00:00
|
|
|
SQLALCHEMY_TRACK_MODIFICATIONS = True
|
2023-04-14 11:12:02 +00:00
|
|
|
# SQLA_DB_USER = 'pda'
|
|
|
|
# SQLA_DB_PASSWORD = 'changeme'
|
|
|
|
# SQLA_DB_HOST = '127.0.0.1'
|
|
|
|
# SQLA_DB_NAME = 'pda'
|
2023-02-18 00:35:36 +00:00
|
|
|
# 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
|
|
|
|
# )
|