Is it possible to get that variables?
Depends on environment (dev/stage/prod) we have different domains and want to add env based locations in nginx template. Now we have to compare FQDN like:
{{ if eq $host.Upstream.Name "app1.testing.local" }}
...
{{ if eq $host.Upstream.Name "app2.testing.local" }}
...
{{ if eq $host.Upstream.Name "app999.testing.local" }}
...
We want something like:
{{ if eq $host.Upstream.domain "testing.local" }}
...
Thanks!
Is it possible to get that variables?
Depends on environment (dev/stage/prod) we have different domains and want to add env based locations in nginx template. Now we have to compare FQDN like:
We want something like:
Thanks!