From 5e00142781f98821afa1eca0ae569a90dc1e5305 Mon Sep 17 00:00:00 2001 From: augustinebest Date: Wed, 27 Oct 2021 14:07:58 +0100 Subject: [PATCH] added configuration for ingestor, probe1 & probe2 --- nginx/default.conf | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) 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