Skip to content

Commit daca737

Browse files
committed
fix(config): strict modifier on v2 location block
without the strict modifier, it will match against the beginning of any uri
1 parent 28fa81d commit daca737

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ echo "Docker configured with HTTPS_PROXY=$scheme://$http_host/"
333333
}
334334

335335
# Don't send Authorization to /v2/ to trigger WWW-Authenticate; don't cache these
336-
location /v2/ {
336+
location = /v2/ {
337337
proxy_pass https://$targetHost;
338338
proxy_set_header Authorization "";
339339
proxy_cache off;

0 commit comments

Comments
 (0)