Skip to content

Instantly share code, notes, and snippets.

@muhamad-ridwant-tech
Created September 2, 2025 09:45
Show Gist options
  • Select an option

  • Save muhamad-ridwant-tech/a12d8fd9e709b295e9620488e0364886 to your computer and use it in GitHub Desktop.

Select an option

Save muhamad-ridwant-tech/a12d8fd9e709b295e9620488e0364886 to your computer and use it in GitHub Desktop.
HAProxy Config for Microcloud LXD Dashboard
global
log /dev/log local0
log /dev/log local1 notice
maxconn 2048
user haproxy
group haproxy
daemon
tune.ssl.default-dh-param 2048
defaults
log global
mode tcp
option tcplog
option dontlognull
timeout connect 10s
timeout client 1m
timeout server 1m
retries 3
frontend microcloud_frontend
bind *:443
mode tcp
option tcplog
default_backend microcloud_backend
backend microcloud_backend
mode tcp
balance leastconn
option tcp-check
default-server check inter 5s fall 3 rise 2
server MicroCloud-01 192.168.100.102:8443
server MicroCloud-01 192.168.100.103:8443
server MicroCloud-01 192.168.100.104:8443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment