Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
deb13:haproxy [2026/09/12 15:26] – [Installation] Bernard Condraudeb13:haproxy [2026/09/12 15:28] (current) – [Installation] Bernard Condrau
Line 12: Line 12:
   * Restart the proxy:<code>sudo systemctl restart haproxy</code>   * Restart the proxy:<code>sudo systemctl restart haproxy</code>
   * If you want to include your current external IP address to the whitelist file automatically, add a line to the end of [[haconfig#whitelist|Whitelist]] and add the following task to root's crontab file, calling it every 5 minutes:<code>*/5 * * * * head -n -1 /etc/haproxy/whitelist.lst > /etc/haproxy/whitelist.tmp && dig +short host.mydyndns.org >> /etc/haproxy/whitelist.tmp && mv /etc/haproxy/whitelist.tmp /etc/haproxy/whitelist.lst && systemctl reload haproxy</code>   * If you want to include your current external IP address to the whitelist file automatically, add a line to the end of [[haconfig#whitelist|Whitelist]] and add the following task to root's crontab file, calling it every 5 minutes:<code>*/5 * * * * head -n -1 /etc/haproxy/whitelist.lst > /etc/haproxy/whitelist.tmp && dig +short host.mydyndns.org >> /etc/haproxy/whitelist.tmp && mv /etc/haproxy/whitelist.tmp /etc/haproxy/whitelist.lst && systemctl reload haproxy</code>
 +  * Follow this [[haletsencrypt|guide]] to set up automatic Let's Encrypt certificate generation
 ===== Settings ===== ===== Settings =====
   * Crontab:<code>15 3,15 * * * certbot renew --post-hook "systemctl reload haproxy" > /dev/null 2>&1</code>   * Crontab:<code>15 3,15 * * * certbot renew --post-hook "systemctl reload haproxy" > /dev/null 2>&1</code>