DAS_2023_1/podkorytova_yulia_lab_3/nginx-conf/nginx.conf

21 lines
673 B
Nginx Configuration File
Raw Normal View History

2024-01-10 00:13:23 +04:00
server {
listen 80;
listen [::]:80;
server_name localhost;
location /user-service/ {
proxy_pass http://user-service:8085/;
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 /user-service;
}
location /message-service/ {
proxy_pass http://message-service:8086/;
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 /message-service;
}
}