- Using a ready-to-use Ubuntu image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Haproxy configuration for SSL request passthrough to different backend based on SNI read from Handshaking stage | |
| # The Loadbalance will not decode the encrpted data but transparently transfer to the backend server in Private subnet. | |
| # With such configuration, you can install multiply services with its own SSL certificate in backend in different EC2 instance, but only explosure to public internet with one Loadbalance IP. There is no need to install SSL certificate in Loadbalancer level. | |
| # Ref: | |
| # How to support wildcard sni: https://stackoverflow.com/questions/24839318/haproxy-reverse-proxy-sni-wildcard | |
| # https://www.haproxy.com/blog/enhanced-ssl-load-balancing-with-server-name-indication-sni-tls-extension/ | |
| # https://stuff-things.net/2016/11/30/haproxy-sni/ | |