This commit is contained in:
Adam Mohammed
2023-10-25 01:39:13 +00:00
commit a9ad514474
8 changed files with 85 additions and 0 deletions

29
haproxy.cfg Normal file
View File

@@ -0,0 +1,29 @@
global
daemon
maxconn 256
log stdout format raw daemon debug
defaults
mode http
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
log global
frontend https-in
bind *:443 ssl crt /certs/combined.pem
acl host_gitea hdr_beg(host) -i git
acl host_plex hdr_beg(host) -i tv
use_backend gitea if host_gitea
use_backend plex if host_plex
default_backend static-content
backend static-content
server server1 static:80 maxconn 32
backend gitea
server gitea1 garage-nas:3000 maxconn 16
backend plex
server plex1 garage-nas:32400 maxconn 16