diff options
Diffstat (limited to 'main/varnish/varnishd.confd')
-rw-r--r-- | main/varnish/varnishd.confd | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/main/varnish/varnishd.confd b/main/varnish/varnishd.confd index 1471f82078..4d72cb7f96 100644 --- a/main/varnish/varnishd.confd +++ b/main/varnish/varnishd.confd @@ -2,7 +2,7 @@ # Varnish configuration file -VARNISH_CONF="/etc/varnish/default.vcl" +# VARNISH_CONF="/etc/varnish/default.vcl" VARNISH_SECRET_FILE="/etc/varnish/secret" @@ -10,27 +10,20 @@ VARNISH_SECRET_FILE="/etc/varnish/secret" VARNISH_LISTEN_ADDRESS= VARNISH_PORT=8080 -# Varnish work files -VARNISH_WORKING_DIR="/var/cache/varnish" +# Varnish storage VARNISH_STORAGE_FILE="/var/cache/varnish/varnish_storage.bin" VARNISH_STORAGE_SIZE=50M VARNISH_STORAGE="file,${VARNISH_STORAGE_FILE},${VARNISH_STORAGE_SIZE}" - -# PID files -VARNISHD_PID_FILE=/var/run/varnish/varnishd.pid -VARNISHNCSA_PID_FILE=/var/run/varnish/varnishncsa.pid +# VARNISH_STORAGE="malloc,${VARNISH_STORAGE_SIZE}" # Varnish admin ADMINHOSTPORT="127.0.0.1:65080" # options passed to varnish on startup # please see the varnishd man page for more options -VARNISHD_OPTS="-a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_PORT} -f ${VARNISH_CONF} -s ${VARNISH_STORAGE} -n $VARNISH_WORKING_DIR -T $ADMINHOSTPORT" - -# add user -VARNISHD_OPTS="-u varnish $VARNISHD_OPTS" +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="-c -a -w /var/log/varnish/access.log" +VARNISHNCSA_ARGS="-c -a -w /var/log/varnish/${SVCNAME}.log" |