43 lines
785 B
INI
43 lines
785 B
INI
# For haproxy 2.2
|
|
# tcp proxy to local (ssh forwarded) ports
|
|
|
|
defaults
|
|
log global
|
|
mode tcp
|
|
option dontlognull
|
|
retries 3
|
|
maxconn 4000
|
|
timeout connect 5000
|
|
timeout client 50000
|
|
timeout server 50000
|
|
|
|
# http
|
|
listen proxy80
|
|
mode tcp
|
|
bind :::80
|
|
server proxy7000 127.0.0.1:7000
|
|
|
|
# https
|
|
listen proxy443
|
|
mode tcp
|
|
bind :::443
|
|
server proxy7001 127.0.0.1:7001
|
|
|
|
# gitea ssh
|
|
listen proxy2222
|
|
mode tcp
|
|
bind :::2222
|
|
server proxy7002 127.0.0.1:7002
|
|
|
|
# minecraft
|
|
listen proxy25565
|
|
mode tcp
|
|
bind :::25565
|
|
server proxy7003 127.0.0.1:7003
|
|
|
|
# matrix federation
|
|
listen proxy8448
|
|
mode tcp
|
|
bind :::8448
|
|
server proxy7004 127.0.0.1:7004
|