DAS_2023_1/belyaeva_ekaterina_lab_3/nginx.conf

27 lines
782 B
Nginx Configuration File
Raw Normal View History

2024-01-11 20:12:15 +04:00
http {
server {
listen 80;
listen [::]:80;
server_name localhost;
location /disciplineService/ {
proxy_pass http://discipline:8089/;
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-Prefix /disciplineService;
}
location /learningPlanService/ {
proxy_pass http://learning_plan:8090/;
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-Prefix /learningPlanService;
}
}
}
events {
worker_connections 1024;
}