From 0ffd62de9e7bdd706be627df3d7813b41efc7b35 Mon Sep 17 00:00:00 2001 From: saibotk Date: Tue, 28 Dec 2021 12:24:18 +0100 Subject: [PATCH] penpot: Migrate Env vars to new flag system --- roles/penpot/templates/docker-compose.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/roles/penpot/templates/docker-compose.yml b/roles/penpot/templates/docker-compose.yml index 0dd7728..89170a3 100644 --- a/roles/penpot/templates/docker-compose.yml +++ b/roles/penpot/templates/docker-compose.yml @@ -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=""