We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8fe62f commit 28366dcCopy full SHA for 28366dc
rootfs/etc/nginx/template/nginx.tmpl
@@ -933,9 +933,9 @@ stream {
933
{{ $authPath := buildAuthLocation $location $all.Cfg.GlobalExternalAuth.URL }}
934
{{ $applyGlobalAuth := shouldApplyGlobalAuth $location $all.Cfg.GlobalExternalAuth.URL }}
935
936
- {{ $externalAuth := $all.Cfg.GlobalExternalAuth}}
937
- {{ if not ($applyGlobalAuth) }}
938
- {{ $externalAuth := $location.ExternalAuth}}
+ {{ $externalAuth := $location.ExternalAuth }}
+ {{ if eq $applyGlobalAuth true }}
+ {{ $externalAuth = $all.Cfg.GlobalExternalAuth }}
939
{{ end }}
940
941
{{ if not (empty $location.Rewrite.AppRoot)}}
0 commit comments