diff --git a/helmfile/environments/production.yaml.gotmpl b/helmfile/environments/production.yaml.gotmpl index a51bf7b..7f382ff 100644 --- a/helmfile/environments/production.yaml.gotmpl +++ b/helmfile/environments/production.yaml.gotmpl @@ -3,6 +3,8 @@ {{ $image_tag := env "IMAGE_TAG" | default (exec "../scripts/branded_image_tag.sh" (list) | trim) }} domain: wir.social +redirect_domains: | # i don't understand it, but its the way to get it to work: https://stackoverflow.com/a/52840704 + [ "www.wir.social"] namespace: wir-social-ocelot-production #image_tag: {{ env "IMAGE_TAG" | default (printf "ocelot-%s--branded-%s" $ocelot_image_tag $branded_image_tag) }} image_tag: {{ $image_tag }} diff --git a/helmfile/values/ocelot.yaml.gotmpl b/helmfile/values/ocelot.yaml.gotmpl index 8e0a853..3b06640 100644 --- a/helmfile/values/ocelot.yaml.gotmpl +++ b/helmfile/values/ocelot.yaml.gotmpl @@ -1,4 +1,5 @@ domain: {{ .StateValues.domain }} +redirect_domains: {{ .StateValues.redirect_domains }} cert_manager: issuer: {{ .Release.Name }}-letsencrypt-prod