aboutsummaryrefslogtreecommitdiffstats
path: root/main/varnish/varnishd.confd
blob: 1471f82078e8686937446d2d3541b7ae06ab9135 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# /etc/conf.d/varnishd


# Varnish configuration file
VARNISH_CONF="/etc/varnish/default.vcl"

VARNISH_SECRET_FILE="/etc/varnish/secret"

# Varnish address
VARNISH_LISTEN_ADDRESS=
VARNISH_PORT=8080

# Varnish work files
VARNISH_WORKING_DIR="/var/cache/varnish"
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 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"

# arguments passed to varnishncsa
# please see the varnishncsa man page for more options
VARNISHNCSA_ARGS="-c -a -w /var/log/varnish/access.log"