Skip to content

Commit

Permalink
remove internal directive for location block
Browse files Browse the repository at this point in the history
  • Loading branch information
salonichf5 committed Jan 16, 2024
1 parent f3fae10 commit e6ff4eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion internal/mode/static/nginx/config/servers.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func initializeExternalLocations(
}

func initializeInternalLocation(
pathruleIdx int,
pathruleIdx,
matchRuleIdx int,
match dataplane.Match,
) (http.Location, httpMatch) {
Expand Down
4 changes: 0 additions & 4 deletions internal/mode/static/nginx/config/servers_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ server {
{{ range $l := $s.Locations }}
location {{ $l.Path }} {
{{ if $l.Internal -}}
internal;
{{ end }}
{{- range $r := $l.Rewrites }}
rewrite {{ $r }};
{{- end }}
Expand Down

0 comments on commit e6ff4eb

Please sign in to comment.