New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
access the rancher server through proxy failed, because rancher server redirect to intranet IP #1153
Comments
+1 definitively need reverse proxy support |
I do configure a reverse proxy using nginx ( using proxy_pass), but still redirect to intranet IP? |
How do you have the Nginx proxy configured? |
|
I think if just the proxy_pass setting is used, then the request is made with the host header of the proxy_pass server. A basic setup that should work, and handle the websockets:
|
@cloudnautique thanks for your reference configuration, it did work. |
@hjianhao Since it looks like we've fixed this issue, I'll close it. |
@cloudnautique Thanks for the nginx conf, this worked for me however it ends up redirecting to the public IP after login e.g. http://1.2.3.4:8080/static/services/projects instead of http://foo.com/static/services/projects. Something I am missing? |
Was the github callback setup with the ip? |
@cloudnautique yes - do you recommend disabling access control and re-set it up to solve? |
Yes; GitHub always sends you back to the URL configured in the application you create. |
Ok, I tried but now its stuck in some weird state always going to Error and so i went to the settings/auth URL manually and tried to auth but the whole page didn't load and now all URLs are stuck on: Error |
Ok, so I have fixed that up by upgrading but when accessing with the reverse proxy (and I also employed https forcing), I get:
I actually use a separete nginx container to redirect all http requests to https, the https then terminates with an ELB which then forwards to the nginx conf above. |
I access the rancher from internet with mydomainname:port (for example 91)
rancher server running on IP 192.168.1.140 (intranet IP)
I am using nginx for proxy, pass the request from port 91 to IP 192.168.1.140:8080
I enter the mydomainname:91 url on browsers, then redirect to 192.168.1.140:8080/static, so this intranet IP can not be accessed from internet.
I think rancher server should not redirect the request to intranet IP and ports.
The text was updated successfully, but these errors were encountered: