DAS_2023_1/mashkova_margarita_lab_3/nginx-conf/nginx.conf

18 lines
481 B
Nginx Configuration File
Raw Permalink Normal View History

2023-12-14 09:39:03 +04:00
server {
listen 80;
location /groupe-service/ {
proxy_pass_request_headers on;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Prefix '/groupe-service';
proxy_pass http://groupe-service:8080/;
}
location /student-service/ {
proxy_pass_request_headers on;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Prefix '/student-service';
proxy_pass http://student-service:8081/;
}
}