astefanutti / kubebox

⎈❏ Terminal and Web console for Kubernetes
http://astefanutti.github.io/kubebox
MIT License
2.14k stars 142 forks source link

Connection failed to "aws elb/master" #86

Open chandu412 opened 4 years ago

chandu412 commented 4 years ago

Capture

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

astefanutti commented 3 years ago

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