Revert "use-regex annotation should be applied to only one Location"

This reverts commit a8a8b5f6e9.
This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-07-15 11:20:47 -04:00 committed by GitHub
parent 51a661d666
commit dc3876666b
4 changed files with 55 additions and 11 deletions

View file

@ -903,8 +903,9 @@ stream {
{{ buildMirrorLocations $server.Locations }}
{{ $enforceRegex := enforceRegexModifier $server.Locations }}
{{ range $location := $server.Locations }}
{{ $path := buildLocation $location }}
{{ $path := buildLocation $location $enforceRegex }}
{{ $proxySetHeader := proxySetHeader $location }}
{{ $authPath := buildAuthLocation $location $all.Cfg.GlobalExternalAuth.URL }}
{{ $applyGlobalAuth := shouldApplyGlobalAuth $location $all.Cfg.GlobalExternalAuth.URL }}