Make upstream naming more general

This commit is contained in:
Marty Oehme 2021-07-30 13:32:07 +02:00
parent daef2b7f13
commit 241ce71f46
Signed by: Marty
GPG key ID: B7538B8F50A1C800
2 changed files with 1 additions and 1 deletions

View file

@ -0,0 +1,30 @@
{
"@id": "{{ stack.name }}_upstream",
{% if domain is not undefined and not none %}
"match": [
{
"host": [
"{{ stack.name }}.{{ domain }}"
]
}
],
{% else %}
"match": [
{
"path": [
"/{{ stack.name }}*"
]
}
],
{% endif %}
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [
{
"dial": "{{ stack.name }}_app:80"
}
]
}
]
}