forked from adumbidiot/docker-haproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhaproxy.cfg
More file actions
207 lines (178 loc) · 5.26 KB
/
haproxy.cfg
File metadata and controls
207 lines (178 loc) · 5.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
global
maxconn 10000
frontend stats
timeout client 50000ms
bind 127.0.0.1:1936
mode http
stats enable
stats hide-version
stats realm Haproxy\ Statistics
stats uri /
stats auth user:pass #For any smart ones out there, i have a script change the values. Hope you feel proud of yourself.
backend web-backend
balance roundrobin
timeout connect 5000ms
timeout server 50000ms
mode http
server main 192.168.1.16:9000 check
backend node-backend
balance roundrobin
timeout connect 5000ms
timeout server 50000ms
mode http
server main 192.168.1.11:9001 check
server backup 192.168.88.243:9001 check
backend bt
balance roundrobin
timeout connect 5000ms
timeout server 50000ms
mode http
server main 192.168.1.17:9091 check
backend nanopi
balance roundrobin
timeout connect 5000ms
timeout server 50000ms
mode http
server main 192.168.1.16:9002 check
backend rhs
balance roundrobin
timeout connect 5000ms
timeout server 50000ms
mode http
server main 192.168.1.16:9005 check
backend music
balance roundrobin
timeout connect 5000ms
timeout server 50000ms
mode http
server main 192.168.1.16:9003 check
backend proxy
balance roundrobin
timeout connect 5000ms
timeout server 50000ms
mode http
server main 192.168.1.13:8080 check
backend omv
balance roundrobin
timeout connect 5000ms
timeout server 50000ms
mode http
server main 192.168.1.17:80 check
backend router
balance roundrobin
timeout connect 5000ms
timeout server 50000ms
mode http
server main 192.168.1.1:80
backend ap
balance roundrobin
timeout connect 5000ms
timeout server 50000ms
mode http
server main 192.168.1.2:80
backend os-backend
balance roundrobin
timeout connect 5000ms
timeout server 50000ms
mode http
server main 192.168.1.16:8000 check
backend nanoalien
balance roundrobin
timeout connect 5000ms
timeout server 50000ms
mode http
server main 192.168.1.23:8080 check
backend testing
balance roundrobin
timeout connect 5000ms
timeout server 50000ms
mode http
server main 192.168.1.20:8080 check
backend stats-backend
balance roundrobin
timeout connect 5000ms
timeout server 50000ms
mode http
server main 127.0.0.1:1936 check
backend riotwebdev
balance roundrobin
timeout connect 5000ms
timeout server 50000ms
mode http
server main 192.168.1.16:9011 check
backend tent
balance roundrobin
timeout connect 5000ms
timeout server 50000ms
mode http
server main 192.168.1.16:9009 check
backend n8d
balance roundrobin
timeout connect 5000ms
timeout server 50000ms
mode http
server main 192.168.1.16:9010 check
frontend http-in
bind *:80
timeout client 50000ms
mode http
acl host_os hdr(host) -i os.theultimatewebsite.ml
acl host_ddns hdr(host) -i nanopi.ddns.net
acl host_nanopi hdr(host) -i theultimatewebsite.ml
acl host_nanopi hdr(host) -i www.theultimatewebsite.ml
acl host_gay hdr(host) -i gaylordplz.ddns.net
acl host_stats hdr(host) -i stats.theultimatewebsite.ml
acl host_dev hdr(host) -i dev.theultimatewebsite.ml
acl host_doge hdr(host) -i doge.nanopi.ml
acl host_proxy hdr(host) -i proxy.nanopi.ml
acl host_omv hdr(host) -i omv.theultimatewebsite.ml
acl host_router hdr(host) -i router.theultimatewebsite.ml
acl host_ap hdr(host) -i ap.theultimatewebsite.ml
acl host_bt hdr(host) -i bt.theultimatewebsite.ml
acl host_music hdr(host) -i music.theultimatewebsite.ml
acl host_rhs hdr(host) -i rhs-first-robotics.ml
acl host_rhs hdr(host) -i www.rhs-first-robotics.ml
acl host_legacy hdr(host) -i legacy.theultimatewebsite.ml
acl host_nanoalien hdr(host) -i nanoalien.theultimatewebsite.ml
acl host_testing hdr(host) -i testing.theultimatewebsite.ml
acl host_riotwebdev hdr(host) -i riotwebdev.ml
acl host_tent hdr(host) -i redtent.nated.ml
acl host_n8d hdr(host) -i nated.ml
use_backend os-backend if host_os
use_backend nanopi if host_nanopi
use_backend node-backend if host_ddns
use_backend node-backend if host_legacy
use_backend node-backend if host_gay
use_backend node-backend if host_dev
use_backend stats-backend if host_stats
use_backend node-backend if host_doge
use_backend proxy if host_proxy
use_backend omv if host_omv
use_backend router if host_router
use_backend ap if host_ap
use_backend bt if host_bt
use_backend music if host_music
use_backend rhs if host_rhs
use_backend nanoalien if host_nanoalien
use_backend testing if host_testing
use_backend riotwebdev if host_riotwebdev
use_backend n8d if host_n8d
use_backend tent if host_tent
use_backend web-backend
default_backend web-backend
backend local_ssh
balance roundrobin
timeout connect 5000ms
timeout server 2hr
mode tcp
server main 127.0.0.1:22 check
frontend https
bind *:443
timeout client 50000ms
mode tcp
use_backend local_ssh
defaults
mode http
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms