kubebox icon indicating copy to clipboard operation
kubebox copied to clipboard

Connection failed to "aws elb/master"

Open chandu412 opened this issue 5 years ago • 1 comments

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

chandu412 avatar Mar 30 '20 08:03 chandu412

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

astefanutti avatar Mar 25 '21 19:03 astefanutti