From 7804046877f31f93a387f331cf5bff4bbd72a415 Mon Sep 17 00:00:00 2001 From: Marcello Coutinho Date: Wed, 14 Dec 2011 02:37:31 -0200 Subject: varnish - change varnish-dev to varnish3 with streaming support --- config/varnish3/varnish_lb_directors.xml | 258 +++++++++++++++++++++++++++++++ 1 file changed, 258 insertions(+) create mode 100644 config/varnish3/varnish_lb_directors.xml (limited to 'config/varnish3/varnish_lb_directors.xml') diff --git a/config/varnish3/varnish_lb_directors.xml b/config/varnish3/varnish_lb_directors.xml new file mode 100644 index 00000000..994320f3 --- /dev/null +++ b/config/varnish3/varnish_lb_directors.xml @@ -0,0 +1,258 @@ + + + + + + + Copyright (C) 2011 Marcello Coutinho + + All rights reserved. +*/ +/* ========================================================================== */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + */ +/* ========================================================================== */ + ]]> + + Describe your package here + Describe your package requirements here + Currently there are no FAQ items provided. + varnishlbdirectors + 0.0.6 + Varnish: Backends + /usr/local/pkg/varnish.inc + + /usr/local/pkg/ + 0755 + http://www.pfsense.com/packages/config/varnish64/varnish_settings.xml + + + /usr/local/pkg/ + 0755 + http://www.pfsense.com/packages/config/varnish64/varnish_custom_vcl.xml + + + /usr/local/pkg/ + 0755 + http://www.pfsense.com/packages/config/varnish64/varnish.inc + + + Varnish + +
Services
+ varnish_lb_directors.xml +
+ + + Backends + /pkg.php?xml=varnish_backends.xml + + + Settings + /pkg_edit.php?xml=varnish_settings.xml&id=0 + + + Custom VCL + /pkg_edit.php?xml=varnish_custom_vcl.xml&id=0 + + + LB Directors + /pkg.php?xml=varnish_lb_directors.xml + + + + XMLRPC Sync + /pkg_edit.php?xml=varnish_sync.xml&id=0 + + + View Configuration + /varnish_view_config.php + + + VarnishSTAT + /varnishstat.php + + + + + Director name + directorname + + + HOST + directorurl + + + URL + directorurl2 + + + + Type + directortype + + + Grace + grace + + + Failover + failover + + + + + DirectorSettings + Director Settings + listtopic + Director settings + + + Director name + directorname + input + 40 + + + Match type + fieldtype + Select the field type that you would like to use in matching the HOST/URL. + select + + + + + + + Host + directorurl + Hint www.mysite.com + input + 40 + + + URL + directorurl2 + Hint /images + input + 40 + + + Req Grace + grace + How many time varnish will keep cached objects for this director. HINT 60s, 30m, 1h
Use 0s grace time to force no cache.]]>
+ input + 5 +
+ + Additions options + customapping + Paste your custom varnish code for this host/url. + textarea + 70 + 3 + base64 + + + Backendlist + Backendlist + listtopic + Backend Settings + + + Algorithms + directortype + Choose how varnish will balance clientes.]]> + select + + + + + + + + + Backend + Backend + rowhelper + + + Backend + backendname + Enter the URL that will be mapped to this lb_directors. + + backendname + backendname + select_source + + + Weight + weight + Enter the weight of this backend. + input + + + + + FailoverSettings + FailoverSettings + listtopic + Failover Settings + + + Failover Director + failover + Select a Director for failover or choose same director to do not configure it. + + directorname + directorname + select_source + +
+ + + + sync_package_varnish(); + create_varnish_rcd_file(); + varnish_start(); + + + sync_package_varnish(); + create_varnish_rcd_file(); + varnish_start(); + + + varnish_lb_directors_post_validate($_POST, &$input_errors); + +
\ No newline at end of file -- cgit v1.2.3