From 58e3f0fc3171b72411b1058a152f7b04de3da765 Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 7 Jun 2023 13:05:44 +0200 Subject: [PATCH] update nossl conf for forwrder --- .../configuration/nginx/default.conf.nossl | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/chirpstack/configuration/nginx/default.conf.nossl b/chirpstack/configuration/nginx/default.conf.nossl index 99ae6366..f38bdd39 100644 --- a/chirpstack/configuration/nginx/default.conf.nossl +++ b/chirpstack/configuration/nginx/default.conf.nossl @@ -7,6 +7,13 @@ upstream chirpstack { upstream chirpstack-api { server chirpstack-rest-api:8090; } +# uncomment when forwarder is deployed +#upstream node1 { +# server fwnode1:8082; +#} +#upstream node2 { +# server fwnode2:8082; +#} map $arg_override $override { true chirpstack; default front; @@ -56,4 +63,24 @@ server { proxy_set_header Host $http_host; } +# uncomment when forwarder is deployed +# location ~ ^(/forwarder1/) { +# rewrite ^/forwarder1/(.*) /forwarder/$1 break; +# proxy_pass http://node1; +# proxy_redirect off; +# proxy_set_header X-Real-IP $remote_addr; +# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; +# proxy_set_header Host $http_host; +# } + +# location ~ ^(/forwarder2/) { +# rewrite ^/forwarder2/(.*) /forwarder/$1 break; +# proxy_pass http://node2; +# proxy_redirect off; +# proxy_set_header X-Real-IP $remote_addr; +# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; +# proxy_set_header Host $http_host; +# } + + } \ No newline at end of file