Skip to content

Commit d124842

Browse files
author
Matthew Fisher
committed
Merge pull request #3266 from dialoghq/feature/taxing-rewrites
feat(router): avoid regex-based taxing rewrites
2 parents fb2ffc0 + b320a67 commit d124842

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

router/image/templates/nginx.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ http {
9999

100100
{{ if eq $enforceHTTPS "true" }}
101101
if ($access_scheme != "https") {
102-
rewrite ^(.*)$ https://$host$1 permanent;
102+
return 301 https://$server_name$request_uri;
103103
}
104104
{{ end }}
105105
}
@@ -173,7 +173,7 @@ http {
173173

174174
{{ if eq $enforceHTTPS "true" }}
175175
if ($access_scheme != "https") {
176-
rewrite ^(.*)$ https://$host$1 permanent;
176+
return 301 https://$server_name$request_uri;
177177
}
178178
{{ end }}
179179

0 commit comments

Comments
 (0)