]>
Commit | Line | Data |
---|---|---|
5728e7e8 | 1 | # Configuration file for varnish |
deec6cba | 2 | # See varnishd(1) for more information. |
8e16c234 | 3 | |
5728e7e8 | 4 | # Maximum number of open files (for ulimit -n) |
8eb0a184 | 5 | # Open files (usually 1024, which is way too small for varnish) |
ba7265a7 ER |
6 | NFILES=131072 |
7 | ||
deec6cba ER |
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 | |
ba7265a7 ER |
11 | MEMLOCK=82000 |
12 | ||
751013b4 ER |
13 | # Main configuration file. You probably want to change it :) |
14 | VARNISH_VCL_CONF=/etc/varnish/default.vcl | |
8e16c234 | 15 | |
deec6cba ER |
16 | # Default varnish instance name is the local nodename. Can be overridden with |
17 | # the -n switch, to have more instances on a single server. | |
ba7265a7 ER |
18 | INSTANCE=$(uname -n) |
19 | ||
14179f7c | 20 | # Name of this system / path to spool file |
ba7265a7 | 21 | VARNISH_NAME=/var/run/varnish/$INSTANCE |
14179f7c | 22 | |
deec6cba ER |
23 | # Specifies the name of an unprivileged user/group to which the child process should |
24 | # switch before it starts accepting connections. | |
25 | VARNISH_USER=varnish | |
26 | VARNISH_GROUP=varnish | |
27 | ||
751013b4 ER |
28 | # Default address and port to bind to |
29 | # Blank address means all IPv4 and IPv6 interfaces, otherwise specify | |
30 | # a host name, an IPv4 dotted quad, or an IPv6 address in brackets. | |
14179f7c | 31 | VARNISH_LISTEN_ADDRESS=127.0.0.1 |
751013b4 | 32 | VARNISH_LISTEN_PORT=6081 |
8e16c234 | 33 | |
751013b4 ER |
34 | # Telnet admin interface listen address and port |
35 | VARNISH_ADMIN_LISTEN_ADDRESS=127.0.0.1 | |
36 | VARNISH_ADMIN_LISTEN_PORT=6082 | |
8e16c234 | 37 | |
751013b4 ER |
38 | # The minimum number of worker threads to start |
39 | VARNISH_MIN_THREADS=1 | |
8e16c234 | 40 | |
751013b4 ER |
41 | # The Maximum number of worker threads to start |
42 | VARNISH_MAX_THREADS=1000 | |
8e16c234 | 43 | |
751013b4 ER |
44 | # Idle timeout for worker threads |
45 | VARNISH_THREAD_TIMEOUT=120 | |
8e16c234 | 46 | |
751013b4 ER |
47 | # Cache file location |
48 | VARNISH_STORAGE_FILE=/var/lib/varnish/varnish_storage.bin | |
49 | ||
50 | # Cache file size: in bytes, optionally using k / M / G / T suffix, | |
51 | # or in percentage of available disk space using the % suffix. | |
52 | VARNISH_STORAGE_SIZE=1G | |
53 | ||
54 | # Backend storage specification | |
55 | VARNISH_STORAGE="file,${VARNISH_STORAGE_FILE},${VARNISH_STORAGE_SIZE}" | |
56 | ||
57 | # Default TTL used when the backend does not specify one | |
58 | VARNISH_TTL=120 |