Browse Source

nginx

master
zeus 4 years ago
parent
commit
735a9ddd41
  1. 10
      swarmlab-app/nginx/swarmlab-stats-proxy-server.conf

10
swarmlab-app/nginx/swarmlab-stats-proxy-server.conf

@ -58,7 +58,15 @@ server {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
proxy_pass http://factory_servers; set $originaddr http://readmongo:3000;
#proxy_pass $originaddr;
#set $originaddr http://origin.example.com;
#proxy_pass $originaddr;
# or even
#proxy_pass http://origin.example.com$request_uri;
proxy_pass http://factory_servers$request_uri;
# proxy_pass http://factory_servers;
# proxy_pass http://$host;
proxy_redirect off; proxy_redirect off;
proxy_read_timeout 240s; proxy_read_timeout 240s;

Loading…
Cancel
Save