aboutsummaryrefslogtreecommitdiffstats
path: root/main/varnish/varnishd.confd
diff options
context:
space:
mode:
Diffstat (limited to 'main/varnish/varnishd.confd')
-rw-r--r--main/varnish/varnishd.confd38
1 files changed, 12 insertions, 26 deletions
diff --git a/main/varnish/varnishd.confd b/main/varnish/varnishd.confd
index b51eda6be5..1a18b64854 100644
--- a/main/varnish/varnishd.confd
+++ b/main/varnish/varnishd.confd
@@ -1,32 +1,18 @@
# /etc/conf.d/varnishd
+VARNISHD="/usr/sbin/varnishd"
+VARNISHADM="/usr/bin/varnishadm"
-# Varnish configuration file
-# VARNISH_CONF="/etc/varnish/default.vcl"
+#CONFIGFILES="/etc/varnish/${SVCNAME}.vcl"
+CONFIGFILE="/etc/varnish/default.vcl"
-VARNISH_SECRET_FILE="/etc/varnish/secret"
+# Listen on 127.0.0.1:8080 and connect to backend 127.0.0.1:80
+#VARNISHD_OPTS="-a 127.0.0.1:8080 -a 127.0.0.1:8080"
-# Varnish address
-VARNISH_LISTEN_ADDRESS=
-VARNISH_PORT=8080
-
-# Varnish storage
-VARNISH_STORAGE_FILE="/var/cache/varnish/varnish_storage.bin"
-VARNISH_STORAGE_SIZE=50M
-VARNISH_STORAGE="file,${VARNISH_STORAGE_FILE},${VARNISH_STORAGE_SIZE}"
-# VARNISH_STORAGE="malloc,${VARNISH_STORAGE_SIZE}"
-
-# Varnish admin
-ADMINHOSTPORT="127.0.0.1:65080"
-
-# If maxminddb.vcl is included, this adds the proper library support
-# VARNISHD_PLUGIN_CFLAGS="-lmaxminddb"
-
-# options passed to varnish on startup
-# please see the varnishd man page for more options
-VARNISHD_OPTS="-a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_PORT} -s ${VARNISH_STORAGE} -T $ADMINHOSTPORT"
-
-# arguments passed to varnishncsa
-# please see the varnishncsa man page for more options
-VARNISHNCSA_ARGS="-a -w /var/log/varnish/${SVCNAME}.log"
+# Alternatively, don't listen to a backend
+VARNISHD_OPTS="-a 127.0.0.1:8080"
+# You may need to increase the number of open files (-n)
+# and the maximum amount off locked memory (-l)
+# See bug #459142
+#rc_ulimit="-n 32786 -l 82000"