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 #Server side sessions tracking
#Set to TRUE for CAPTCHA, or enable another stateful session tracking system #Set to TRUE for CAPTCHA, or enable another stateful session tracking system
SESSION_TYPE = 'filesystem' SESSION_TYPE = 'sqlalchemy'
### DATABASE - MySQL ### DATABASE - MySQL
#SQLALCHEMY_DATABASE_URI = 'mysql://{}:{}@{}/{}'.format( #SQLALCHEMY_DATABASE_URI = 'mysql://{}:{}@{}/{}'.format(

View File

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

View File

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

View File

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