init
This commit is contained in:
29
haproxy.cfg
Normal file
29
haproxy.cfg
Normal 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
|
||||
Reference in New Issue
Block a user