diff --git a/nginx.conf b/nginx.conf index 7a413bc..fd34585 100644 --- a/nginx.conf +++ b/nginx.conf @@ -7,9 +7,20 @@ server { try_files $uri $uri/ /index.html; } - location /api/ { - proxy_pass http://192.168.2.186:9090/; + location /ProductsRequest { + proxy_pass http://192.168.2.186:9090/ProductsRequest; + proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; } + location /CalculateRequest { + proxy_pass http://192.168.2.186:9090/CalculateRequest; + + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } }