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_settings.xml | 290 +++++++++++++++++++++++++++++++++++ 1 file changed, 290 insertions(+) create mode 100644 config/varnish3/varnish_settings.xml (limited to 'config/varnish3/varnish_settings.xml') diff --git a/config/varnish3/varnish_settings.xml b/config/varnish3/varnish_settings.xml new file mode 100644 index 00000000..38c68a03 --- /dev/null +++ b/config/varnish3/varnish_settings.xml @@ -0,0 +1,290 @@ + + + + + + + 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. + varnishsettings + 0.0.6 + Varnish Settings + pkg_edit.php?xml=varnish_settings.xml&id=0 + /usr/local/pkg/varnish.inc + + + 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 + + + + + Listening + Listening + listtopic + Daemon options + + + Enable Varnish + enablevarnish + checkbox + + + Listening port + listeningport +
Before listening on port 80, you must check 'Disable webConfigurator redirect rule' in system advanced options.]]>
+ input +
+ + Managment interface + managment + Enter the Ip address and port for managment interface. HINT 127.0.0.1:81 + input + + + Advanced startup options + advancedstartup + Enter advanced startup options to include in rc.d file + textarea + 70 + 2 + base64 + + + StorageTypeLT + StorageTypeLT + listtopic + Storage type + + + Storage type + storagetype + Select which storage type you would like to use. + select + + + + + + + Cache storage size in megabytes + storagesize + Enter the size of the varnish cache in megabytes. HINT: 1024 == 1 Gigabyte + input + + + + WorkerThreadLT + WorkerThreadLT + listtopic + Worker thread configuration + + + Minimum worker threads + minworkers + Enter the minimum number of varnish worker threads. + input + + + Maximum worker threads + maxworkers + Enter the maximum number of varnish worker threads. + input + + + Worker thread timeout + timeoutworkers + Enter the timeout time for the worker threads. + input + + + BasicVCLLT + BasicVCLLT + listtopic + General VCL Settings + + + Client identity method + clientbalance + + select + + + + + + + + Don't cache posts + postcache + Don't cache posts + checkbox + + + streaming support + streaming + Enable streaming support + checkbox + + + Session Cache + sessioncache + Never Don't cache anything with JSESSION,PHPSESSID set.
+ Per User This causes a lookup for a given object to include the Cookie.

+ Note: no-cache no-store private header directives are respected by default.]]>
+ select + + + + +
+ + Cache static content + staticache + + Always Cache all static content. When cookies are present, varnish will unset it from object before caching.
+ Never Do not cache static content.
+ When possible Cache only static content and per user objects when session cache is set to it.
]]>
+ select + + + + + +
+ + Fix gzip compression + fixgzip + Ignore compression for images files and unknow compression algorithm + checkbox + + + Be RFC2616 compliant + rfc2616 + Ignore request different form GET HEAD PUT POST TRACE OPTIONS DELETE + checkbox + + + Foward client IP + xforward + Select how to forward clients real IP. + select + + + + + + + + + Fetch Grace + grace + How many time varnish will keep cached objects. HINT 60s, 30m, 1h]]> + input + 5 + + + ErrorVCLLT + ErrorVCLLT + listtopic + Error Settings + + + Retries + restarts + How many times restart loop until Error messages.]]> + select + + + + + + + + + + Saintmode + saint + How many time varnish will send cached objects from a down backend to client. HINT 60s, 30m, 1h]]> + input + 5 + + + Custom Html error message + htmlerror + Paste your custom html error page code here. + textarea + 70 + 10 + base64 + +
+ + sync_package_varnish(); + create_varnish_rcd_file(); + varnish_start(); + + + varnish_settings_post_validate($_POST, &$input_errors); + +
\ No newline at end of file -- cgit v1.2.3