From 7549eb85d206e9283ce952cdef76ff2ec11ee6cc Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 22 Dec 2009 15:31:09 -0500 Subject: Add advanced pass thru box for frontend edit screen --- config/haproxy/haproxy.inc | 4 ++++ config/haproxy/haproxy_frontends_edit.php | 14 ++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/haproxy/haproxy.inc b/config/haproxy/haproxy.inc index a14a4fd8..377d440d 100644 --- a/config/haproxy/haproxy.inc +++ b/config/haproxy/haproxy.inc @@ -151,6 +151,10 @@ function haproxy_configure() { fwrite ($fd, "{$backendinfo}"); fwrite ($fd, "{$listenip}"); + // Advanced pass trhu + if($backend['advanced']) + fwrite ($fd, "{$backend['advanced']}"); + // https is an alias for tcp for clarity purpouses if(strtolower($backend['type']) == "https") { $backend_type = "tcp"; diff --git a/config/haproxy/haproxy_frontends_edit.php b/config/haproxy/haproxy_frontends_edit.php index b79d6051..13ee0745 100755 --- a/config/haproxy/haproxy_frontends_edit.php +++ b/config/haproxy/haproxy_frontends_edit.php @@ -72,6 +72,7 @@ if (isset($id) && $a_backend[$id]) { $pconfig['stats_password'] = $a_backend[$id]['stats_password']; $pconfig['port'] = $a_backend[$id]['port']; $pconfig['a_acl']=&$a_backend[$id]['ha_acls']['item']; + $pconfig['advanced'] = $a_backend[$id]['advanced']; } @@ -231,8 +232,9 @@ if ($_POST) { update_if_changed("extaddr", $backend['extaddr'], $_POST['extaddr']); update_if_changed("max_connections", $backend['max_connections'], $_POST['max_connections']); update_if_changed("client_timeout", $backend['client_timeout'], $_POST['client_timeout']); + update_if_changed("advanced", $backend['advanced'], $_POST['advanced']); - $backend['ha_acls']['item']=$a_acl; + $backend['ha_acls']['item'] = $a_acl; if (isset($id) && $a_backend[$id]) { $a_backend[$id] = $backend; @@ -595,7 +597,15 @@ set by the 'retries' parameter (2). */ -?> +?> + + Advanced pass thru + + +
+ NOTE: paste text into this box that you would like to pass thru. + +   -- cgit v1.2.3