DAS_2024_1/kalyshev_yan_lab_3/nginx/nginx.conf
2024-10-30 13:57:42 +04:00

22 lines
671 B
Nginx Configuration File

server {
listen 80;
listen [::]:80;
server_name localhost;
location /api/v1/room {
proxy_pass http://room:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /api/v1/computer {
proxy_pass http://computer:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}