modified: serv_nginx/nginx/nginx-ssl.conf

set localhost:8888 to api proxy_pass
This commit is contained in:
2025-10-06 01:08:58 +05:00
parent 749abdd496
commit 54a209ac65
+2 -1
View File
@@ -32,7 +32,8 @@ server {
# New location for REST API # New location for REST API
location /api { location /api {
proxy_pass http://serv_golang_rest_api:8080/api; resolver 127.0.0.11 valid=30s;
proxy_pass http://localhost:8888;
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;