From 10cad093dc5f26414672984b4cd66f59fdfb9cc1 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sun, 14 Feb 2021 15:26:52 +0100 Subject: [PATCH] If/else the additional ports Closes https://git.autonomic.zone/coop-cloud/traefik/issues/9. --- traefik.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/traefik.yml b/traefik.yml index 4023ab1..787d26f 100644 --- a/traefik.yml +++ b/traefik.yml @@ -24,10 +24,14 @@ entrypoints: to: web-secure web-secure: address: ":443" + {{ if eq (env "GITEA_SSH_ENABLED") "1" }} gitea-ssh: address: ":2222" + {{ end }} + {{ if eq (env "FOODSOFT_SMTP_ENABLED") "1" }} foodsoft-smtp: address: ":2525" + {{ end }} {{ if eq (env "SMTP_ENABLED") "1" }} smtp-submission: address: ":587"