added configuration for ingestor, probe1 & probe2

This commit is contained in:
augustinebest 2021-10-27 14:07:58 +01:00
parent a6fe551705
commit 5e00142781

View File

@ -23,6 +23,15 @@ upstream home {
upstream docs {
server api-docs:1445;
}
upstream ingestor {
server data-ingestor:3200;
}
upstream probe1 {
server probe1:3024;
}
upstream probe2 {
server probe2:3025;
}
server {
listen 80;
server_name localhost;
@ -111,4 +120,28 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://docs/;
}
location /ingestor {
rewrite ^/ingestor/(.*) /$1 break;
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-Proto $scheme;
proxy_pass http://ingestor/;
}
location /probe1 {
rewrite ^/probe1/(.*) /$1 break;
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-Proto $scheme;
proxy_pass http://probe1/;
}
location /probe2 {
rewrite ^/probe2/(.*) /$1 break;
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-Proto $scheme;
proxy_pass http://probe2/;
}
}