Skip to content

Commit

Permalink
update nossl conf for forwrder
Browse files Browse the repository at this point in the history
  • Loading branch information
disk91 committed Jun 7, 2023
1 parent 613158a commit 58e3f0f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions chirpstack/configuration/nginx/default.conf.nossl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
# }


}

0 comments on commit 58e3f0f

Please sign in to comment.