I got the point of putting following into ConfigMap
if ( $http_x_forwarded_proto = http ) { rewrite .* https://$host$1 permanent; }
Can you please paste configmap yaml just want to see the syntax how is above put in there.
Also, listeners are http and https at ELB? Not TCP right
Got this working. Changed listeners on ELB to HTTP and HTTPS and following annotations on ingress seems to be working. SSL certificate still terminating on ELB.
Ingress annotation nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
ELB listener setting.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I got the point of putting following into ConfigMap
if ( $http_x_forwarded_proto = http ) {
rewrite .* https://$host$1 permanent;
}
Can you please paste configmap yaml just want to see the syntax how is above put in there.
Also, listeners are http and https at ELB? Not TCP right
Got this working.
Changed listeners on ELB to HTTP and HTTPS and following annotations on ingress seems to be working. SSL certificate still terminating on ELB.
Ingress annotation
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
ELB listener setting.