HAProxy: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(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/to…“)
 
(Der Seiteninhalt wurde durch einen anderen Text ersetzt: „*Manuelle HAProxy Konfiguration *PFSense HAProxy“)
Markierung: Ersetzt
Zeile 1: Zeile 1:
−
=HTTPS Webserver to multiple http Webserver=
+
*[[Manuelle HAProxy Konfiguration]]
−
Simply add the following at the end of /etc/haproxy/haproxy.cfg
+
*[[PFSense HAProxy]]
−
<pre>
 
−
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
 
−
</pre>
 
−
 
 
−
=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/
 
−
 
 
−
=sources=
 
−
*https://gridscale.io/community/tutorials/haproxy-ssl/
 
−
*https://www.meshcloud.io/en/2017/04/18/pem-file-layout-for-haproxy/
 

Version vom 25. Mai 2022, 07:37 Uhr