nginx do not forward /admin, but enforce trailing slash

This commit is contained in:
Ulf Gebhardt 2022-01-05 22:02:48 +01:00
parent 564261a72f
commit ccc9b9bf58
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -42,7 +42,7 @@ server {
}
# Admin Frontend
location /admin {
location /admin/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
@ -50,8 +50,7 @@ server {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
#todo remove /admin
proxy_pass http://127.0.0.1:8080/admin;
proxy_pass http://127.0.0.1:8080;
proxy_redirect off;
}