fix: corsAll if not defined
This commit is contained in:
parent
4c9e3a6ab2
commit
09007a88bb
|
@ -20,9 +20,9 @@
|
|||
[http.routers.{{r.name}}]
|
||||
rule = "{{ r.rule }}"
|
||||
{% if r.tls %}
|
||||
entryPoints = ["websecure"{% if r.corsAll %}, "corsAll"{% endif %}]
|
||||
entryPoints = ["websecure"{% if "corsAll" in r and r.corsAll %}, "corsAll"{% endif %}]
|
||||
{% else %}
|
||||
entryPoints = ["web"{% if r.corsAll %}, "corsAll"{% endif %}]
|
||||
entryPoints = ["web"{% if "corsAll" in r and r.corsAll %}, "corsAll"{% endif %}]
|
||||
{% endif %}
|
||||
service = "{{r.name}}@file"
|
||||
{% if r.tls %}
|
||||
|
|
Loading…
Reference in New Issue