Tweaked PR to include the latest asset build changes for CSS minimizer. Also updated the default session storage to use SQLAlchemy instead of the file system.

This commit is contained in:
Matt Scott 2023-03-10 16:34:55 -05:00
parent 1d6fdb1c23
commit 356667f989
4 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ CAPTCHA_SESSION_KEY = 'captcha_image'
#Server side sessions tracking
#Set to TRUE for CAPTCHA, or enable another stateful session tracking system
SESSION_TYPE = 'filesystem'
SESSION_TYPE = 'sqlalchemy'
### DATABASE - MySQL
#SQLALCHEMY_DATABASE_URI = 'mysql://{}:{}@{}/{}'.format(

View File

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

View File

@ -38,7 +38,7 @@ css_main = Bundle(
'node_modules/admin-lte/dist/css/adminlte.css',
'custom/css/custom.css',
'node_modules/bootstrap-datepicker/dist/css/bootstrap-datepicker.css',
filters=('cssmin', 'cssrewrite'),
filters=('rcssmin', 'cssrewrite'),
output='generated/main.css')
js_main = Bundle(

View File

@ -9,7 +9,7 @@ BIND_ADDRESS = '0.0.0.0'
PORT = 9191
HSTS_ENABLED = False
SESSION_TYPE = 'filesystem'
SESSION_TYPE = 'sqlalchemy'
SESSION_COOKIE_SAMESITE = 'Lax'
CSRF_COOKIE_HTTPONLY = True