Can you please help me how I can adjust nginx configuration. so that how i can host my rancher via nginx
I need help regarding the rancher application with nginx as reverse proxy
as we run container of rancher using docker and our URL are like as below.
upstream backendrancher {
server domain.com:8072;
}
location /rancher {
rewrite ^/rancher(.*)$ /$1 break;
proxy_pass http://backendrancher;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_cache off;
access_log /var/log/nginx/rancher/access.log timed_combined;
error_log /var/log/nginx/rancher/error.log debug;
}