diff --git a/nginx/default.conf b/nginx/default.conf index c7a1586c05..49c9b3de4e 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -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/; + } } \ No newline at end of file