Skip to content

interlock.domain and interlock.hostname variables in nginx template #240

@vkakhnych

Description

@vkakhnych

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions