diff --git a/docker/Dockerfile.BackgroundJob b/docker/Dockerfile.BackgroundJob index bf0bf5e..4904270 100644 --- a/docker/Dockerfile.BackgroundJob +++ b/docker/Dockerfile.BackgroundJob @@ -94,6 +94,8 @@ RUN apk add --no-cache mariadb-connector-c postgresql-client py3-gunicorn py3-ps COPY --from=builder /usr/bin/flask /usr/bin/ COPY --from=builder /usr/lib/python3.8/site-packages /usr/lib/python3.8/site-packages/ COPY --from=builder --chown=root:${USER} /app /app/ +# Create directory for custom css +RUN mkdir /app/powerdnsadmin/static/custom COPY ./docker/entrypoint.sh /usr/bin/ WORKDIR /app diff --git a/powerdnsadmin/models/setting.py b/powerdnsadmin/models/setting.py index 0d3a575..5fea755 100644 --- a/powerdnsadmin/models/setting.py +++ b/powerdnsadmin/models/setting.py @@ -181,6 +181,7 @@ class Setting(db.Model): }, 'ttl_options': '1 minute,5 minutes,30 minutes,60 minutes,24 hours', 'otp_field_enabled': True, + 'custom_css': '', } def __init__(self, id=None, name=None, value=None): diff --git a/powerdnsadmin/templates/login.html b/powerdnsadmin/templates/login.html index 1d597fd..4ddf21f 100644 --- a/powerdnsadmin/templates/login.html +++ b/powerdnsadmin/templates/login.html @@ -11,7 +11,9 @@ {% assets "css_login" -%} {%- endassets %} - +{% if SETTING.get('custom_css') %} + +{% endif %}