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