DAS_2024_1/turner_ilya_lab_3/nginx.conf

26 lines
805 B
Nginx Configuration File

events { worker_connections 1024; }
http {
server {
listen 80;
listen [::]:80;
server_name localhost;
location /faculty_service/ {
proxy_pass http://faculty_service:10001/;
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 /speciality_service/ {
proxy_pass http://speciality_service:10002/;
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;
}
}
}