Skip to content

Instantly share code, notes, and snippets.

@mtlynch
Last active August 21, 2022 18:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtlynch/dd29c02d311733a90d26e8d2d66b892e to your computer and use it in GitHub Desktop.
Save mtlynch/dd29c02d311733a90d26e8d2d66b892e to your computer and use it in GitHub Desktop.
FROM haproxy:2.3
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
app = "haproxy-scratch"
kill_signal = "SIGINT"
kill_timeout = 5
[experimental]
private_network=true
[[services]]
internal_port = 8085
protocol = "tcp"
[services.concurrency]
hard_limit = 25
soft_limit = 20
[[services.ports]]
handlers = ["http"]
port = "80"
[[services.ports]]
handlers = ["tls", "http"]
port = "443"
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
port = "8085"
restart_limit = 6
timeout = "2s"
global
defaults
mode tcp
timeout connect 30s
timeout client 30s
timeout server 30s
frontend http_front
bind *:8085
default_backend http_back
backend http_back
server tinypilot tinypilot._peer.internal:80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment