pdns-admin: catch up with upstream changes

Captcha seems to be mandatory for now.
This commit is contained in:
Peter Schiffer 2023-02-24 23:40:00 +01:00
parent b1f97c95c7
commit b604c907bd
No known key found for this signature in database
GPG key ID: F2A18AC34A008397
2 changed files with 13 additions and 1 deletions

View file

@ -39,4 +39,5 @@ RUN envtpl < /config.py.tpl > /opt/powerdns-admin/config.py \
RUN yarn install --pure-lockfile --production \
&& yarn cache clean \
&& flask assets build \
&& chown -R uwsgi: /opt/powerdns-admin/powerdnsadmin/static/.webassets-cache
&& chown -R uwsgi: /opt/powerdns-admin/powerdnsadmin/static/.webassets-cache \
&& chown -R uwsgi: /opt/powerdns-admin/flask_session

View file

@ -6,6 +6,17 @@ BIND_ADDRESS = '0.0.0.0'
PORT = 9191
HSTS_ENABLED = False
# CAPTCHA Config
CAPTCHA_ENABLE = True
CAPTCHA_LENGTH = 6
CAPTCHA_WIDTH = 160
CAPTCHA_HEIGHT = 60
CAPTCHA_SESSION_KEY = 'captcha_image'
# Server side sessions tracking
# Set to TRUE for CAPTCHA, or enable another stateful session tracking system
FILESYSTEM_SESSIONS_ENABLED = True
# SAML Authnetication
SAML_ENABLED = False