aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-devel/haproxy.inc
diff options
context:
space:
mode:
authorTorben Nielsen <torben@t-hoerup.dk>2013-03-04 21:38:21 +0100
committerTorben Nielsen <torben@t-hoerup.dk>2013-03-04 21:38:21 +0100
commit179db50fb0ed2db1836fb019e673f6632d46a668 (patch)
tree0af191b314e4d006439b60e9b58f754b8d9b3f16 /config/haproxy-devel/haproxy.inc
parent0e21a5f32bbc00e783881ef748a15c424743e618 (diff)
downloadpfsense-packages-179db50fb0ed2db1836fb019e673f6632d46a668.tar.gz
pfsense-packages-179db50fb0ed2db1836fb019e673f6632d46a668.tar.bz2
pfsense-packages-179db50fb0ed2db1836fb019e673f6632d46a668.zip
add option for setting per backend advanced settings (current only takes pr server)
Diffstat (limited to 'config/haproxy-devel/haproxy.inc')
-rw-r--r--config/haproxy-devel/haproxy.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/haproxy-devel/haproxy.inc b/config/haproxy-devel/haproxy.inc
index 05264c87..559788c7 100644
--- a/config/haproxy-devel/haproxy.inc
+++ b/config/haproxy-devel/haproxy.inc
@@ -377,6 +377,16 @@ function write_backend($fd, $name, $pool, $frontend) {
$uri = "/";
fwrite ($fd, "\toption\t\t\t{$httpchk} HEAD " . $uri . " HTTP/1.0\n");
+ if ($pool['advanced_backend']) {
+ $adv_be = explode("\n", base64_decode($pool['advanced_backend']));
+ foreach($adv_be as $adv_line) {
+ $adv_line = trim($adv_line);
+ if ($adv_line != "") {
+ fwrite($fd, "\t" . $adv_line . "\n");
+ }
+ }
+ }
+
if($pool['cookie'] && strtolower($frontend['type']) == "http")
$cookie = " cookie {$pool['cookie']} ";
else