]> git.pld-linux.org Git - packages/varnish.git/blob - varnish.sysconfig
add VARNISHNCSA_OPTS config to add generic options to varnishncsa daemon
[packages/varnish.git] / varnish.sysconfig
1 # Configuration file for varnish
2 # See varnishd(1) for more information.
3
4 # Maximum number of open files (for ulimit -n)
5 # Open files (usually 1024, which is way too small for varnish)
6 NFILES=131072
7
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
12 MEMLOCK=82000
13
14 # Main configuration file. You probably want to change it :)
15 VARNISH_VCL_CONF=/etc/varnish/default.vcl
16
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.
19 INSTANCE=$(uname -n)
20
21 # Name of this system / path to spool file
22 VARNISH_NAME=/var/run/varnish/$INSTANCE
23
24 # Specifies the name of an unprivileged user/group to which the child process should
25 # switch before it starts accepting connections.
26 VARNISH_USER=varnish
27 VARNISH_GROUP=varnish
28
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
34
35 # Telnet admin interface listen address and port
36 VARNISH_ADMIN_LISTEN_ADDRESS=127.0.0.1
37 VARNISH_ADMIN_LISTEN_PORT=6082
38
39 # Shared secret file for admin interface. Disable to use none.
40 #VARNISH_SECRET_FILE=/etc/varnish/secret
41
42 # The minimum number of worker threads to start
43 VARNISH_MIN_THREADS=1
44
45 # The Maximum number of worker threads to start
46 VARNISH_MAX_THREADS=1000
47
48 # Idle timeout for worker threads
49 VARNISH_THREAD_TIMEOUT=120
50
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.
53 VARNISH_OPTS=""
54
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"
59
60 # Cache file location
61 VARNISH_STORAGE_FILE=/var/lib/varnish/varnish_storage.bin
62
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
66
67 # Backend storage specification
68 VARNISH_STORAGE="file,${VARNISH_STORAGE_FILE},${VARNISH_STORAGE_SIZE}"
69
70 # Default TTL used when the backend does not specify one
71 VARNISH_TTL=120
This page took 0.034226 seconds and 3 git commands to generate.