aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy
diff options
context:
space:
mode:
Diffstat (limited to 'config/haproxy')
-rw-r--r--config/haproxy/haproxy.inc4
-rwxr-xr-xconfig/haproxy/haproxy_frontends_edit.php14
2 files changed, 16 insertions, 2 deletions
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).</div>
</td>
</tr>
*/
-?>
+?>
+ <tr align="left">
+ <td width="22%" valign="top" class="vncell">Advanced pass thru</td>
+ <td width="78%" class="vtable" colspan="2">
+ <textarea name='advanced' rows="4" cols="70" id='advanced'><?php echo $pconfig['advanced']; ?></textarea>
+ <br/>
+ NOTE: paste text into this box that you would like to pass thru.
+ </td>
+ </tr>
<tr align="left">
<td width="22%" valign="top">&nbsp;</td>
<td width="78%">