fix(vaultwarden): only match starting with /admin

This commit is contained in:
Jannis S 2023-03-27 11:50:20 +02:00
parent 79a256c79e
commit a0edbd65b4
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ server {
}
location ~ (/vaultwarden)?/admin {
location ~ ^(/vaultwarden)?/admin {
# enable the next two lines for http auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;

View file

@ -31,7 +31,7 @@ location ^~ /vaultwarden/ {
}
location ~ (/vaultwarden)?/admin {
location ~ ^(/vaultwarden)?/admin {
# enable the next two lines for http auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;