Skip to content

Commit

Permalink
Tweaked PR to include the latest asset build changes for CSS minimize…
Browse files Browse the repository at this point in the history
…r. Also updated the default session storage to use SQLAlchemy instead of the file system.
  • Loading branch information
AzorianMatt committed Mar 10, 2023
1 parent 1d6fdb1 commit 356667f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion configs/development.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#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(
Expand Down
2 changes: 1 addition & 1 deletion configs/docker_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
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',
Expand Down
2 changes: 1 addition & 1 deletion powerdnsadmin/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def concat(self, out, hunks, **kw):
'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(
Expand Down
2 changes: 1 addition & 1 deletion powerdnsadmin/default_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
PORT = 9191
HSTS_ENABLED = False

SESSION_TYPE = 'filesystem'
SESSION_TYPE = 'sqlalchemy'
SESSION_COOKIE_SAMESITE = 'Lax'
CSRF_COOKIE_HTTPONLY = True

Expand Down

0 comments on commit 356667f

Please sign in to comment.