set new path for proxy pass and location, with slash in the end of paths

This commit is contained in:
2025-10-06 02:48:10 +05:00
parent 85c7c9cfb7
commit 9065f34365
5 changed files with 19 additions and 14 deletions
+2 -2
View File
@@ -31,8 +31,8 @@ server {
}
# New location for REST API
location /api {
proxy_pass http://api:8080;
location /api/ {
proxy_pass http://api:8080/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;