Update haproxy.config

This commit is contained in:
2019-03-03 23:23:58 -06:00
parent d0f0400862
commit c3bf5d3267

View File

@@ -43,7 +43,7 @@ listen admin_page
stats http-request auth realm admin_page unless AuthOkay_ReadOnly
# stats admin if AuthOkay_Admin
listen haproxy_MySQL_3307_rw
listen MySQL_3307_rw
bind *:3307
mode tcp
timeout client 10800s
@@ -58,7 +58,7 @@ listen haproxy_MySQL_3307_rw
server 10.5.10.53 10.5.10.53:3306 check backup
listen haproxy_MySQL_3308_ro
listen MySQL_3308_ro
bind *:3308
mode tcp
timeout client 10800s
@@ -72,44 +72,51 @@ listen haproxy_MySQL_3308_ro
server 10.5.10.52 10.5.10.52:3306 check
server 10.5.10.53 10.5.10.53:3306 check backup
listen haproxy__NGINX_http
bind *:80
mode tcp
timeout client 10800s
timeout server 10800s
# tcp-check expect string is\ running
balance leastconn
option tcp-check
# option allbackups
default-server port 9200 inter 2s downinter 5s rise 3 fall 2 slowstart 60s maxconn 64 maxqueue 128 weight 100
cookie SERVERUSED insert indirect nocache
server 10.5.10.120 10.5.10.120:80 cookie s1 check
server 10.5.10.121 10.5.10.121:80 cookie s2 check
listen NGINX_HTTP
bind *:80 transparent
mode http
balance leastconn
cookie SERVERID maxidle 30m maxlife 12h insert nocache indirect
# server backup 127.0.0.1:9081 backup non-stick
option http-keep-alive
timeout http-request 5s
option forwardfor
timeout tunnel 1h
option redispatch
option abortonclose
maxconn 40000
server iDS-Webserver1 10.5.10.120:80 weight 250 cookie iDS-Webserver1 check port 80 inter 4000 rise 2 fall 2 slowstart 8000 minconn 0 maxconn 0 on-marked-down shutdown-sessions
server iDS-Webserver2 10.5.10.121:80 weight 100 cookie iDS-Webserver2 check port 80 inter 4000 rise 2 fall 2 slowstart 8000 minconn 0 maxconn 0 on-marked-down shutdown-sessions
listen haproxy__NGINX_https
bind *:443
mode tcp
timeout client 10800s
timeout server 10800s
# tcp-check expect string is\ running
balance leastconn
option tcp-check
# option allbackups
default-server port 9200 inter 2s downinter 5s rise 3 fall 2 slowstart 60s maxconn 64 maxqueue 128 weight 100
cookie SERVERUSED insert indirect nocache
server 10.5.10.120 10.5.10.120:443 cookie s1 check
server 10.5.10.121 10.5.10.121:443 cookie s2 check
listen NGINX_SSL
bind *:443 transparent
mode http
balance leastconn
cookie SERVERID maxidle 30m maxlife 12h insert nocache indirect
# server backup 127.0.0.1:9081 backup non-stick
option http-keep-alive
timeout http-request 5s
option forwardfor
timeout tunnel 1h
option redispatch
option abortonclose
maxconn 40000
server iDS-Webserver1-SSL 10.5.10.120:443 weight 250 cookie iDS-Webserver1-SSL check inter 4000 rise 2 fall 2 slowstart 8000 minconn 0 maxconn 0 on-marked-down shutdown-sessions
server iDS-Webserver2-SSL 10.5.10.121:443 weight 100 cookie iDS-Webserver2-SSL check inter 4000 rise 2 fall 2 slowstart 8000 minconn 0 maxconn 0 on-marked-down shutdown-sessions
listen haproxy__Gitea_http
listen Gitea
bind *:3000
mode tcp
timeout client 10800s
timeout server 10800s
# tcp-check expect string is\ running
balance leastconn
option tcp-check
# option allbackups
default-server port 9200 inter 2s downinter 5s rise 3 fall 2 slowstart 60s maxconn 64 maxqueue 128 weight 100
cookie SERVERUSED insert indirect nocache
server 10.5.10.120 10.5.10.120:3000 cookie s1 check
server 10.5.10.121 10.5.10.121:3000 cookie s2 check backup
mode http
balance leastconn
cookie SERVERID maxidle 30m maxlife 12h insert nocache indirect
# server backup 127.0.0.1:9081 backup non-stick
option http-keep-alive
timeout http-request 5s
option forwardfor
timeout tunnel 1h
option redispatch
option abortonclose
maxconn 40000
server iDS-Webserver1-SSL 10.5.10.120:443 weight 250 cookie iDS-Webserver1-SSL check inter 4000 rise 2 fall 2 slowstart 8000 minconn 0 maxconn 0 on-marked-down shutdown-sessions
server iDS-Webserver2-SSL 10.5.10.121:443 weight 100 cookie iDS-Webserver2-SSL check inter 4000 rise 2 fall 2 slowstart 8000 minconn 0 maxconn 0 on-marked-down shutdown-sessions backup