modified: serv_nginx/nginx/nginx-ssl.conf

set /api/ slech for both side location for rest_api
This commit is contained in:
2025-10-06 00:43:14 +05:00
parent 6af7057251
commit 21cdc3e81a
+2 -2
View File
@@ -42,8 +42,8 @@ server {
} }
# New location for REST API # New location for REST API
location /api { location /api/ {
proxy_pass http://api/serv_golang_rest_api:8080; proxy_pass http://serv_golang_rest_api:8080;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;