DAS_2023_1/martysheva_tamara_lab_3/nginx.conf

28 lines
730 B
Nginx Configuration File
Raw Normal View History

2023-12-15 12:05:54 +04:00
http {
server {
listen 80;
listen [::]:80;
server_name localhost;
location /client/ {
proxy_pass http://client: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 /client;
}
location /training/ {
proxy_pass http://training: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 /training;
}
}
}
events {
worker_connections 1024;
}