Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
haproxy [2025/06/10 14:22] jango [Backend] |
haproxy [2025/06/10 19:12] (aktuell) jango [HTTPS Termination] |
||
---|---|---|---|
Zeile 41: | Zeile 41: | ||
# Inherits mode | # Inherits mode | ||
frontend website | frontend website | ||
- | bind :80 | + | bind *:80 |
default_backend web_servers | default_backend web_servers | ||
Zeile 66: | Zeile 66: | ||
</ | </ | ||
+ | ===HTTPS Termination=== | ||
+ | |||
+ | Das Pem Zertifikat muss Cert und Privkey beinhalten! | ||
+ | |||
+ | <code bash> | ||
+ | certbot certonly --standalone -d vpn.zarat.at | ||
+ | certbot certonly --standalone -d sip.zarat.at | ||
+ | |||
+ | bash -c 'cat / | ||
+ | bash -c 'cat / | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | frontend https_termination | ||
+ | mode tcp | ||
+ | bind *:443 ssl crt / | ||
+ | use_backend vpn if { req.hdr(host) -i vpn.zarat.at } | ||
+ | use_backend sip if { req.ssl_sni -i sip.zarat.at } | ||
+ | </ | ||
====Backend==== | ====Backend==== | ||