GateOne icon indicating copy to clipboard operation
GateOne copied to clipboard

nginx proxy_pass always 502

Open zhangguanzhang opened this issue 7 years ago • 2 comments

I use the nginx to setup the container about the proxy_pass,it's always return 502

zhangguanzhang avatar Jan 30 '18 13:01 zhangguanzhang

me to

wv1124 avatar Aug 27 '18 01:08 wv1124

location ^~ /ssh { root /usr/local/lib/python2.7/dist-packages/gateone-1.2.0-py2.7.egg; try_files $uri $uri/index.html $uri.html @gateone; }

location @gateone { proxy_pass http://localhost:8080; proxy_redirect off; proxy_pass_header Server; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $http_address; proxy_set_header X-Scheme $scheme; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; }

roclink avatar Jan 23 '19 00:01 roclink