From 09007a88bbd2fad667812ce8bfc52ae98b0ac4cf Mon Sep 17 00:00:00 2001 From: Geno Date: Fri, 27 Nov 2020 12:58:56 +0100 Subject: [PATCH] fix: corsAll if not defined --- templates/conf.d/70-easy-proxy.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/conf.d/70-easy-proxy.toml b/templates/conf.d/70-easy-proxy.toml index 10953b7..63560db 100644 --- a/templates/conf.d/70-easy-proxy.toml +++ b/templates/conf.d/70-easy-proxy.toml @@ -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 %}