1 # Configuration file for varnish
2 # See varnishd(1) for more information.
4 # Maximum number of open files (for ulimit -n)
5 # Open files (usually 1024, which is way too small for varnish)
8 # Maximum locked memory size (for ulimit -l)
9 # Used for locking the shared memory log in memory. If you increase log size,
10 # you need to increase this number as well
11 # Default log size is 82MB + header
14 # Main configuration file. You probably want to change it :)
15 VARNISH_VCL_CONF=/etc/varnish/default.vcl
17 # Default varnish instance name is the local nodename. Can be overridden with
18 # the -n switch, to have more instances on a single server.
21 # Name of this system / path to spool file
22 VARNISH_NAME=/var/run/varnish/$INSTANCE
24 # Specifies the name of an unprivileged user/group to which the child process should
25 # switch before it starts accepting connections.
29 # Default address and port to bind to
30 # Blank address means all IPv4 and IPv6 interfaces, otherwise specify
31 # a host name, an IPv4 dotted quad, or an IPv6 address in brackets.
32 VARNISH_LISTEN_ADDRESS=127.0.0.1
33 VARNISH_LISTEN_PORT=6081
35 # Telnet admin interface listen address and port
36 VARNISH_ADMIN_LISTEN_ADDRESS=127.0.0.1
37 VARNISH_ADMIN_LISTEN_PORT=6082
39 # Shared secret file for admin interface. Disable to use none.
40 #VARNISH_SECRET_FILE=/etc/varnish/secret
42 # The minimum number of worker threads to start
45 # The Maximum number of worker threads to start
46 VARNISH_MAX_THREADS=1000
48 # Idle timeout for worker threads
49 VARNISH_THREAD_TIMEOUT=120
51 # Any custom option you want to pass to varnishd.
52 # As it is passed last option to varnishd, it can override the earlier values.
55 # Syntax: param=value [param=value]
56 # Set the parameters specified by param to the specified value.
57 # See Run-Time Parameters section of varnishd(1) for a list of parameters.
58 #VARNISH_PARAMS="cli_timeout=10 thread_pools=4"
61 VARNISH_STORAGE_FILE=/var/lib/varnish/varnish_storage.bin
63 # Cache file size: in bytes, optionally using k / M / G / T suffix,
64 # or in percentage of available disk space using the % suffix.
65 VARNISH_STORAGE_SIZE=1G
67 # Backend storage specification
68 VARNISH_STORAGE="file,${VARNISH_STORAGE_FILE},${VARNISH_STORAGE_SIZE}"
70 # Default TTL used when the backend does not specify one