Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen

Configuration haproxy

http

Download the basic configuration for a redundant load balancer with http access:

Translations Ignore


Code Block
languagebash
curl https://cdn.jtel.de/downloads/configs/haproxyhaproxy2.redundant.http.deb.cfg > /etc/haproxy/haproxy.cfg


https

Download the basic configuration for a redundant load balancer with http access:

Translations Ignore


Code Block
languagebash
curl https://cdn.jtel.de/downloads/configs/haproxyhaproxy2.redundant.https.deb.cfg > /etc/haproxy/haproxy.cfg


For a https configuration, the file /etc/haproxy/haproxy.pem must also be created, which contains the certificates and keys for https. This file must also be given special access privileges otherwise haproxy may not start.

See the sections on certificates for the role LB for further details.

Translations Ignore


Code Block
languagebash
chmod 400 /etc/haproxy/haproxy.pem


Firewall

Configure the firewall for MySQL Access with the following commands:

Translations Ignore


Code Block
languagebash
ufw allow 3306/tcp
ufw allow 3307/tcp
ufw allow 3308/tcp



...

Sv translation
languagefr

Configuration haproxy

http

Téléchargez la configuration de base pour un équilibreur de charge redondant avec accès http :

Translations Ignore


Code Block
languagebash
curl https://cdn.jtel.de/downloads/configs/haproxy.redundant.http.cfg > /etc/haproxy/haproxy.cfg


https

Téléchargez la configuration de base pour un équilibreur de charge redondant avec accès http :

Translations Ignore


Code Block
languagebash
curl https://cdn.jtel.de/downloads/configs/haproxy.redundant.https.cfg > /etc/haproxy/haproxy.cfg


Pour une configuration https, le fichier /etc/haproxy/haproxy.pem doit également être créé, qui contient les certificats et les clés pour https. Ce fichier doit également être doté de privilèges d'accès spéciaux, sinon l'haproxy ne pourra pas démarrer.

Voir les sections sur les certificats pour le rôle LB pour plus de détails.

Translations Ignore


Code Block
languagebash
chmod 400 /etc/haproxy/haproxy.pem


Pare-feu

Configurez le pare-feu pour MySQL Access avec les commandes suivantes:

Translations Ignore


Code Block
languagebash
ufw allow 3306/tcp ufw allow 3307/tcp ufw allow 3308/tcp