Spaces:
Runtime error
Runtime error
Update haproxy.cfg
Browse files- haproxy.cfg +6 -26
haproxy.cfg
CHANGED
|
@@ -1,27 +1,7 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
chroot /var/lib/haproxy
|
| 5 |
-
user haproxy
|
| 6 |
-
group haproxy
|
| 7 |
-
# daemon
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
option httplog
|
| 13 |
-
option dontlognull
|
| 14 |
-
timeout connect 5000ms
|
| 15 |
-
timeout client 50000ms
|
| 16 |
-
timeout server 50000ms
|
| 17 |
-
errorfile 400 /etc/haproxy/errors/400.http
|
| 18 |
-
errorfile 403 /etc/haproxy/errors/403.http
|
| 19 |
-
errorfile 408 /etc/haproxy/errors/408.http
|
| 20 |
-
errorfile 500 /etc/haproxy/errors/500.http
|
| 21 |
-
errorfile 502 /etc/haproxy/errors/502.http
|
| 22 |
-
errorfile 503 /etc/haproxy/errors/503.http
|
| 23 |
-
errorfile 504 /etc/haproxy/errors/504.http
|
| 24 |
-
|
| 25 |
-
listen stats :80
|
| 26 |
-
stats enable
|
| 27 |
-
stats uri /
|
|
|
|
| 1 |
+
frontend myfrontend
|
| 2 |
+
bind 127.0.0.1:80
|
| 3 |
+
default_backend myservers
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
+
backend myservers
|
| 6 |
+
server server-1 neptunoia-neptuno-proxy.hf.space
|
| 7 |
+
server server-2 mysteryman63453121-hope.hf.space
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|