Manuelle HAProxy Konfiguration
Version vom 25. Mai 2022, 07:37 Uhr von Thomas.will (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „ =HTTPS Webserver to multiple http Webserver= Simply add the following at the end of /etc/haproxy/haproxy.cfg <pre> frontend ssl_443 bind *:443 ssl crt /path/…“)
HTTPS Webserver to multiple http Webserver
Simply add the following at the end of /etc/haproxy/haproxy.cfg
frontend ssl_443 bind *:443 ssl crt /path/to/cert/example.pem mode http http-request set-header X-Forwarded-For %[src] reqadd X-Forwarded-Proto:\ https option http-server-close default_backend ssl_443 backend ssl_443 mode http balance roundrobin server web1 10.80.100.10:80 check server web2 10.80.100.11:80 check
pem layout
- cat certificate.crt intermediates.pem private.key > ssl-certs.pem
bind *:443 ssl crt /path/to/cert/ssl-certs.pem
letsencrypt cert
Works a bit differently as seen in https://gridscale.io/community/tutorials/haproxy-ssl/