horizon tries to resolve to http when using ssl terminating in Haproxy
Issue
- How to change horizon to https ? horizon is not https enabled
- "Following the article looks like all the OpenStack services endpoints is working with SSL terminating in HaProxy,
Horizon insist on a redirect after the login to a non https link that is causing an error. Horizon works if you manually force HTTPS in browser address bar.
frontend vip-horizon-https-pub
bind 192.168.0.1:443 ssl crt /etc/pki/haproxy/cert.pem
timeout client 180s
cookie SERVERID insert indirect nocache
default_backend horizon
frontend vip-horizon-int
bind 192.168.0.1:80
timeout client 180s
cookie SERVERID insert indirect nocache
default_backend horizon
backend horizon
balance roundrobin
timeout server 180s
server controller-01 192.168.0.50:80 check inter 1s cookie controller-01
server controller-02 192.168.0.51:80 check inter 1s cookie controller-02
server controller-03 192.168.0.52:80 check inter 1s cookie controller-03
Environment
- Red Hat Enterprise Linux OpenStack Platform 5.0 on RHEL7
- Red Hat Enterprise Linux OpenStack Platform 6.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
