Updated Docker file to include npm as a new requirement for the admin-lte npm module.

Also added session persistence setting to default and docker configuration files.

Changed the default persistence configuration of the default config file to use SQLite instead of MySQL.
This commit is contained in:
Matt Scott 2023-02-17 19:00:09 -05:00
parent d12f03c734
commit e82759cbc4
3 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,7 @@ PORT = 80
SQLALCHEMY_DATABASE_URI = 'sqlite:////data/powerdns-admin.db'
SESSION_COOKIE_SAMESITE = 'Lax'
CSRF_COOKIE_HTTPONLY = True
FILESYSTEM_SESSIONS_ENABLED = True
legal_envvars = (
'SECRET_KEY',

View File

@ -7,6 +7,7 @@ ARG BUILD_DEPENDENCIES="build-base \
openldap-dev \
python3-dev \
xmlsec-dev \
npm \
yarn \
cargo"

View File

@ -8,7 +8,7 @@ SECRET_KEY = 'e951e5a1f4b94151b360f47edf596dd2'
BIND_ADDRESS = '0.0.0.0'
PORT = 9191
HSTS_ENABLED = False
FILESYSTEM_SESSIONS_ENABLED = False
FILESYSTEM_SESSIONS_ENABLED = True
SESSION_COOKIE_SAMESITE = 'Lax'
CSRF_COOKIE_HTTPONLY = True
@ -28,7 +28,7 @@ SQLALCHEMY_DATABASE_URI = 'mysql://{}:{}@{}/{}'.format(
)
### DATABASE - SQLite
# SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'pdns.db')
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'pdns.db')
# SAML Authnetication
SAML_ENABLED = False