HAProxy Round Robin mit Selbstsignierten Zertifikat: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
 
=HAProxy Cert und Key Handling=
 
=HAProxy Cert und Key Handling=
{{#drawio:haproxy-3}}
+
{{#drawio:haproxy-4}}
 
*cat haproxy.linux.lab.key haproxy.linux.lab.crt  > server.pem
 
*cat haproxy.linux.lab.key haproxy.linux.lab.crt  > server.pem
  

Version vom 26. September 2022, 20:11 Uhr

HAProxy Cert und Key Handling

  • cat haproxy.linux.lab.key haproxy.linux.lab.crt > server.pem

Konfigurations Datei

/etc/haproxy/haproxy.cfg
frontend port_443
  bind 10.0.10.15:443 name 10.0.10.15:443 ssl  crt /etc/haproxy/server.pem
  timeout client  50000
  mode http
  default_backend port_80

backend port_80
  mode http
  balance roundrobin
  option httpchk HEAD / HTTP/1.0
  timeout connect 5000
  timeout server  50000
  server web16 10.0.10.16:80 check
  server web17 10.0.10.17:80 check
  server web18 10.0.10.18:80 check

Test

  • haproxy -c -f /etc/haproxy/haproxy.cfg
Configuration file is valid