28 lines
730 B
Nginx Configuration File
28 lines
730 B
Nginx Configuration File
|
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;
|
||
|
}
|