From ccc9b9bf58d43f2bac25bbb096be48ded3194fca Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Wed, 5 Jan 2022 22:02:48 +0100 Subject: [PATCH] nginx do not forward /admin, but enforce trailing slash --- deployment/bare_metal/nginx/sites-available/gradido.conf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/deployment/bare_metal/nginx/sites-available/gradido.conf b/deployment/bare_metal/nginx/sites-available/gradido.conf index a6723a500..c0955c4ce 100644 --- a/deployment/bare_metal/nginx/sites-available/gradido.conf +++ b/deployment/bare_metal/nginx/sites-available/gradido.conf @@ -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; }