Skip to content

Commit e6ff4eb

Browse files
committed
remove internal directive for location block
1 parent f3fae10 commit e6ff4eb

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

internal/mode/static/nginx/config/servers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ func initializeExternalLocations(
214214
}
215215

216216
func initializeInternalLocation(
217-
pathruleIdx int,
217+
pathruleIdx,
218218
matchRuleIdx int,
219219
match dataplane.Match,
220220
) (http.Location, httpMatch) {

internal/mode/static/nginx/config/servers_template.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ server {
3333
3434
{{ range $l := $s.Locations }}
3535
location {{ $l.Path }} {
36-
{{ if $l.Internal -}}
37-
internal;
38-
{{ end }}
39-
4036
{{- range $r := $l.Rewrites }}
4137
rewrite {{ $r }};
4238
{{- end }}

0 commit comments

Comments
 (0)