Make upstream naming more general
This commit is contained in:
parent
daef2b7f13
commit
241ce71f46
2 changed files with 1 additions and 1 deletions
|
|
@ -1,30 +0,0 @@
|
|||
{
|
||||
"@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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue