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
Can not access to Rancher Management Server behind Nginx as https reverse proxy #1151
Comments
Good to know I'm not alone. I ran into this too and with a simply nginx conf. |
This is my config, it works fine. server {
} |
@hjianhao Please see that problem happen with https not http. I already try with your configuration in https context but still not working. |
Please see #140 (comment) ; |
@vincent99 I installed Rancher and got 2 (kind of) different issues. I am getting this error in the rancher-server console when I select the standard "rancher.mydomain.tld" as Host Registration:
This happens about 2 times every second. The reason here is that he is not using This error doesn't come up when I don't select the standard rancher.mydomain.tld and instead manually put https://rancher.mydomain.tld into the Host Registration to force secure connections. Then, instead this one is showing up in the rancher-agent console:
The problem here is that he is trying to connect to That is why I am kind of in a dilemma because no matter what I do, there will occur an error on one of the both sides rancher-server and rancher-agent |
@Apfeluser I'll be fixing #1580 today and it will be in this week's release. |
Fixed. The host and x-forwarded-{port,proto} headers are now supported. Will be in release v0.31.0, assuming it passes QA. |
@sangeethah Here is an exact set of steps to follow to setup Rancher with SSL. On your desktop
On your rancher-server host
|
Tested with rancher/server:v0.31.0-rc1 Able to bring up a rancher-server with SSL behind Nginx as https reverse proxy.
Able to add custom hosts , Digital Ocean hosts to rancher server successfully. |
@sangeethah Can we use same step in Racnher v1.6.17 ? is it tested for somebody? |
@sarslans Have you been able to test @sangeethah's Nginx conf ? |
i had also the same problem. |
do u have solve the problem? |
Hi. I'm using Nginx container to listen on port 80 and 443 to act as reverse proxy for every containers both http and https. After I put Rancher Management Server behind Nginx it always showing an error on only https
But http access and direct access to Rancher Management Server is working fine. This is how I run Rancher Management Server
This is my Nginx configuration
The text was updated successfully, but these errors were encountered: