mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-12-04 19:15:30 +00:00
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:
parent
d12f03c734
commit
e82759cbc4
@ -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',
|
||||
|
@ -7,6 +7,7 @@ ARG BUILD_DEPENDENCIES="build-base \
|
||||
openldap-dev \
|
||||
python3-dev \
|
||||
xmlsec-dev \
|
||||
npm \
|
||||
yarn \
|
||||
cargo"
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user