42 lines
823 B
Plaintext
42 lines
823 B
Plaintext
upstream _conductor-server {
|
|
ip_hash;
|
|
server conductor-server-local:8080;
|
|
}
|
|
|
|
upstream _conductor-ui {
|
|
ip_hash;
|
|
server conductor-ui-local:5000;
|
|
}
|
|
|
|
server {
|
|
|
|
listen *:80;
|
|
listen [::]:80;
|
|
server_name conductor-server;
|
|
|
|
location / {
|
|
proxy_set_header Host $host;
|
|
proxy_pass http://_conductor-server;
|
|
}
|
|
|
|
}
|
|
|
|
server {
|
|
|
|
listen *:80 default_server;
|
|
listen [::]:80 default_server;
|
|
server_name conductor-ui;
|
|
|
|
location / {
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
proxy_set_header X-Forwarded-Server $host;
|
|
proxy_set_header X-Forwarded-Port $server_port;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_pass http://_conductor-ui;
|
|
}
|
|
|
|
}
|