summaryrefslogtreecommitdiffstats
path: root/projectroot
diff options
context:
space:
mode:
authorBastian Krause <bst@pengutronix.de>2020-06-10 14:03:07 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-06-12 10:52:57 +0200
commitf368ebc7cfa544bea4bc7d2135b37db42854e1f4 (patch)
treeecdfe7604c59b3a2fc0685e5eb771df7aec291da /projectroot
parent568856a7c2f31eb79f4ba984b107634b6d822736 (diff)
downloadptxdist-f368ebc7cfa544bea4bc7d2135b37db42854e1f4.tar.gz
ptxdist-f368ebc7cfa544bea4bc7d2135b37db42854e1f4.tar.xz
haproxy: new package
HAProxy consists of a GPL core and GPL modules while exportable include files are licensed under LGPL. Some options (e.g. lua, pcre) are not yet configurable, this can be extended if someone needs them. A minimalistic config is provided to be able to test it, for everything else an adjusted config must be installed. As HAProxy's config examples expect some custom files in /etc/haproxy install_alternative_tree is used to install custom configuration files and more easily. Signed-off-by: Bastian Krause <bst@pengutronix.de> Message-Id: <20200610120307.28245-1-bst@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'projectroot')
-rw-r--r--projectroot/etc/haproxy/haproxy.cfg24
1 files changed, 24 insertions, 0 deletions
diff --git a/projectroot/etc/haproxy/haproxy.cfg b/projectroot/etc/haproxy/haproxy.cfg
new file mode 100644
index 000000000..0f9c28d9c
--- /dev/null
+++ b/projectroot/etc/haproxy/haproxy.cfg
@@ -0,0 +1,24 @@
+global
+ log /dev/log local0
+ log /dev/log local1 notice
+ stats socket /run/haproxy-admin.sock mode 660 level admin
+ stats timeout 30s
+ user www
+ group www
+ daemon
+
+defaults
+ log global
+ mode http
+ option httplog
+ option dontlognull
+ timeout connect 5000
+ timeout client 50000
+ timeout server 50000
+ #errorfile 400 /etc/haproxy/errors/400.http
+ #errorfile 403 /etc/haproxy/errors/403.http
+ #errorfile 408 /etc/haproxy/errors/408.http
+ #errorfile 500 /etc/haproxy/errors/500.http
+ #errorfile 502 /etc/haproxy/errors/502.http
+ #errorfile 503 /etc/haproxy/errors/503.http
+ #errorfile 504 /etc/haproxy/errors/504.http