penpot: Migrate Env vars to new flag system

This commit is contained in:
saibotk 2021-12-28 12:24:18 +01:00
parent 2ff6f3573c
commit 0ffd62de9e
Signed by: saibotk
GPG key ID: 67585F0065E261D5

View file

@ -32,10 +32,7 @@ services:
{% if penpot_gitlab is defined %}
- PENPOT_GITLAB_CLIENT_ID={{ penpot_gitlab.client_id }}
{% endif %}
- PENPOT_ALLOW_DEMO_USERS=false
- PENPOT_DEMO_WARNING=false
- PENPOT_LOGIN_WITH_LDAP=false
- PENPOT_REGISTRATION_ENABLED={{ penpot_registration_enabled | lower }}
- PENPOT_FLAGS="{% if penpot_registration_enabled %}enable{% else %}disable{% endif %}-registration disable-demo-users disable-demo-warning disable-login-with-ldap"
labels:
- "traefik.enable=true"
- "traefik.http.routers.penpot.rule=Host(`{{ penpot_domain }}`) && PathPrefix(`/`)"
@ -75,9 +72,7 @@ services:
# Should be set to the public domain when penpot is going to be
# served.
- PENPOT_PUBLIC_URI=https://{{ penpot_domain }}
# User registration
- PENPOT_REGISTRATION_ENABLED={{ penpot_registration_enabled | lower }}
- PENPOT_FLAGS="{% if penpot_registration_enabled %}enable{% else %}disable{% endif %}-registration disable-demo-users disable-login-with-ldap disable-smtp"
# comma-separated domains, defaults to `""` which means that all domains are allowed)
- PENPOT_REGISTRATION_DOMAIN_WHITELIST=""