Open chandu412 opened 4 years ago
trying to access the kubebox behind reverse proxy [nginx] and getting the error as in screenshot attached.
nginx reverse proxy config : set $upstream_kubebox http://kubebox.kubebox.svc.cluster.local:8080; location ~ (/kubebox|/master/api(.)$) { rewrite /kubebox/(.*)$ /$1 break; proxy_pass $upstream_kubebox; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; auth_ldap off; }
it is working fine with service as a load balance but not working behind nginx
Could you make sure headers are passed? You may want to have a look at the reverse proxy Kubebox does:
https://github.com/astefanutti/kubebox/blob/4ae0a2929a17c132a1ea61144e17b51f93eb602f/docs/nginx.conf#L16
trying to access the kubebox behind reverse proxy [nginx] and getting the error as in screenshot attached.
nginx reverse proxy config : set $upstream_kubebox http://kubebox.kubebox.svc.cluster.local:8080; location ~ (/kubebox|/master/api(.)$) { rewrite /kubebox/(.*)$ /$1 break; proxy_pass $upstream_kubebox; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; auth_ldap off; }
it is working fine with service as a load balance but not working behind nginx