2019-12-02 03:32:03 +00:00
|
|
|
import os
|
2021-11-10 10:29:01 +00:00
|
|
|
import urllib.parse
|
|
|
|
basedir = os.path.abspath(os.path.dirname(__file__))
|
2019-12-02 03:32:03 +00:00
|
|
|
|
2019-12-04 04:50:46 +00:00
|
|
|
### BASIC APP CONFIG
|
2019-12-02 03:32:03 +00:00
|
|
|
SALT = '$2b$12$yLUMTIfl21FKJQpTkRQXCu'
|
2019-12-04 04:50:46 +00:00
|
|
|
SECRET_KEY = 'e951e5a1f4b94151b360f47edf596dd2'
|
2019-12-02 03:32:03 +00:00
|
|
|
BIND_ADDRESS = '0.0.0.0'
|
|
|
|
PORT = 9191
|
2019-12-04 04:50:46 +00:00
|
|
|
HSTS_ENABLED = False
|
2023-02-18 00:00:09 +00:00
|
|
|
FILESYSTEM_SESSIONS_ENABLED = True
|
2022-05-30 22:35:04 +00:00
|
|
|
SESSION_COOKIE_SAMESITE = 'Lax'
|
2022-05-27 10:53:28 +00:00
|
|
|
CSRF_COOKIE_HTTPONLY = True
|
2019-12-02 03:32:03 +00:00
|
|
|
|
2019-12-04 04:50:46 +00:00
|
|
|
### DATABASE CONFIG
|
2019-12-02 03:32:03 +00:00
|
|
|
SQLA_DB_USER = 'pda'
|
|
|
|
SQLA_DB_PASSWORD = 'changeme'
|
|
|
|
SQLA_DB_HOST = '127.0.0.1'
|
|
|
|
SQLA_DB_NAME = 'pda'
|
|
|
|
SQLALCHEMY_TRACK_MODIFICATIONS = True
|
|
|
|
|
2020-06-19 01:47:51 +00:00
|
|
|
### DATABASE - MySQL
|
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
|
|
|
|
# )
|
2019-12-02 03:32:03 +00:00
|
|
|
|
2020-06-19 01:47:51 +00:00
|
|
|
### DATABASE - SQLite
|
2023-02-18 00:00:09 +00:00
|
|
|
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'pdns.db')
|
2019-12-02 03:32:03 +00:00
|
|
|
|
|
|
|
# SAML Authnetication
|
|
|
|
SAML_ENABLED = False
|
2020-06-19 01:47:51 +00:00
|
|
|
SAML_ASSERTION_ENCRYPTED = True
|