mirror of
https://github.com/nginx-proxy/nginx-proxy
synced 2024-11-08 15:59:17 +01:00
prevent double slash
This commit is contained in:
parent
50750bea53
commit
d4438b5a09
@ -276,7 +276,7 @@
|
||||
{{- end }}
|
||||
|
||||
{{- if (exists (printf "/etc/nginx/htpasswd/%s_%s" .Host (sha1 .Path) )) }}
|
||||
auth_basic "Restricted {{ .Host }}/{{ .Path }}";
|
||||
auth_basic "Restricted {{ .Host }}{{ .Path }}";
|
||||
auth_basic_user_file {{ (printf "/etc/nginx/htpasswd/%s_%s" .Host (sha1 .Path)) }};
|
||||
{{- else if (exists (printf "/etc/nginx/htpasswd/%s" .Host)) }}
|
||||
auth_basic "Restricted {{ .Host }}";
|
||||
|
Loading…
Reference in New Issue
Block a user