DAS_2024_1/putilin_pavel_lab_3/nginx/nginx.conf
2024-12-02 23:57:46 +04:00

18 lines
492 B
Nginx Configuration File

server {
listen 80;
location /client/ {
proxy_pass http://client_service:8000/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /order/ {
proxy_pass http://order_service:8001/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}