From 2e78ad782d14fcaaf06fbbb8fb56bcedd9fdcfad Mon Sep 17 00:00:00 2001 From: Tim Oxley Date: Tue, 27 Apr 2021 12:07:47 -0400 Subject: [PATCH] Allow connecting to storage via nginx. --- custom-nginx-reverse-proxy.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/custom-nginx-reverse-proxy.conf b/custom-nginx-reverse-proxy.conf index b3e08c1..5642a33 100644 --- a/custom-nginx-reverse-proxy.conf +++ b/custom-nginx-reverse-proxy.conf @@ -29,6 +29,10 @@ http { server 10.200.10.1:8791; } + upstream storage_http { + server 10.200.10.1:8891; + } + upstream mainchain_rpc_http { server 10.200.10.1:8545; } @@ -81,7 +85,7 @@ http { # Data REST endpoints location ~ /api/v1/streams/(.*)/(data|data/partitions/.*)$ { add_header X-debug "/api/v1/streams"; - proxy_pass http://brokers_http; + proxy_pass http://storage_http; proxy_read_timeout 240s; }