From a16a12d6ff8595876d8e94f7e0f77f1c7ef44d58 Mon Sep 17 00:00:00 2001 From: okryvoshapka-connyun Date: Mon, 18 Mar 2019 17:14:38 +0100 Subject: [PATCH] Fixed if block in template --- rootfs/etc/nginx/template/nginx.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rootfs/etc/nginx/template/nginx.tmpl b/rootfs/etc/nginx/template/nginx.tmpl index 396ba2d5c5..2a662d4d4d 100755 --- a/rootfs/etc/nginx/template/nginx.tmpl +++ b/rootfs/etc/nginx/template/nginx.tmpl @@ -938,9 +938,9 @@ stream { {{ $authPath := buildAuthLocation $location $all.Cfg.GlobalExternalAuth.URL }} {{ $applyGlobalAuth := shouldApplyGlobalAuth $location $all.Cfg.GlobalExternalAuth.URL }} - {{ $externalAuth := $all.Cfg.GlobalExternalAuth}} - {{ if not ($applyGlobalAuth) }} - {{ $externalAuth := $location.ExternalAuth}} + {{ $externalAuth := $location.ExternalAuth }} + {{ if eq $applyGlobalAuth true }} + {{ $externalAuth = $all.Cfg.GlobalExternalAuth }} {{ end }} {{ if not (empty $location.Rewrite.AppRoot)}}