Skip to content

Commit

Permalink
Fixed if block in template
Browse files Browse the repository at this point in the history
  • Loading branch information
okryvoshapka-connyun committed Mar 19, 2019
1 parent 4adee2e commit a16a12d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rootfs/etc/nginx/template/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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)}}
Expand Down

0 comments on commit a16a12d

Please sign in to comment.