allow archvsync to trigger snapshot imports
[mirror/dsa-puppet.git] / modules / varnish / files / varnish.default
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5
6
7 # Configuration file for varnish
8 #
9 # /etc/init.d/varnish expects the variables $DAEMON_OPTS, $NFILES and $MEMLOCK
10 # to be set from this shell script fragment.
11 #
12 # Note: If systemd is installed, this file is obsolete and ignored.  You will
13 # need to copy /lib/systemd/system/varnish.service to /etc/systemd/system/ and
14 # edit that file.
15
16 # Should we start varnishd at boot?  Set to "no" to disable.
17 START=yes
18
19 # Maximum number of open files (for ulimit -n)
20 NFILES=131072
21
22 # Maximum locked memory size (for ulimit -l)
23 # Used for locking the shared memory log in memory.  If you increase log size,
24 # you need to increase this number as well
25 MEMLOCK=82000
26
27 # Default varnish instance name is the local nodename.  Can be overridden with
28 # the -n switch, to have more instances on a single server.
29 # INSTANCE=$(uname -n)
30
31 # This file contains 4 alternatives, please use only one.
32
33 ## Alternative 1, Minimal configuration, no VCL
34 #
35 # Listen on port 6081, administration on localhost:6082, and forward to
36 # content server on localhost:8080.  Use a 1GB fixed-size cache file.
37 #
38 # DAEMON_OPTS="-a :6081 \
39 #              -T localhost:6082 \
40 #            -b localhost:8080 \
41 #            -u varnish -g varnish \
42 #            -S /etc/varnish/secret \
43 #            -s file,/var/lib/varnish/$INSTANCE/varnish_storage.bin,1G"
44
45
46 ## Alternative 2, Configuration with VCL
47 #
48 # Listen on port 6081, administration on localhost:6082, and forward to
49 # one content server selected by the vcl file, based on the request.  Use a 1GB
50 # fixed-size cache file.
51 #
52 DAEMON_OPTS="-a :80 \
53              -T localhost:6082 \
54              -f /etc/varnish/default.vcl \
55              -S /etc/varnish/secret \
56              -s malloc,1024m"
57
58
59 ## Alternative 3, Advanced configuration
60 #
61 # See varnishd(1) for more information.
62 #
63 # # Main configuration file. You probably want to change it :)
64 # VARNISH_VCL_CONF=/etc/varnish/default.vcl
65 #
66 # # Default address and port to bind to
67 # # Blank address means all IPv4 and IPv6 interfaces, otherwise specify
68 # # a host name, an IPv4 dotted quad, or an IPv6 address in brackets.
69 # VARNISH_LISTEN_ADDRESS=
70 # VARNISH_LISTEN_PORT=6081
71 #
72 # # Telnet admin interface listen address and port
73 # VARNISH_ADMIN_LISTEN_ADDRESS=127.0.0.1
74 # VARNISH_ADMIN_LISTEN_PORT=6082
75 #
76 # # The minimum number of worker threads to start
77 # VARNISH_MIN_THREADS=1
78 #
79 # # The Maximum number of worker threads to start
80 # VARNISH_MAX_THREADS=1000
81 #
82 # # Idle timeout for worker threads
83 # VARNISH_THREAD_TIMEOUT=120
84 #
85 # # Cache file location
86 # VARNISH_STORAGE_FILE=/var/lib/varnish/$INSTANCE/varnish_storage.bin
87 #
88 # # Cache file size: in bytes, optionally using k / M / G / T suffix,
89 # # or in percentage of available disk space using the % suffix.
90 # VARNISH_STORAGE_SIZE=1G
91 #
92 # # File containing administration secret
93 # VARNISH_SECRET_FILE=/etc/varnish/secret
94
95 # # Backend storage specification
96 # VARNISH_STORAGE="file,${VARNISH_STORAGE_FILE},${VARNISH_STORAGE_SIZE}"
97 #
98 # # Default TTL used when the backend does not specify one
99 # VARNISH_TTL=120
100 #
101 # # DAEMON_OPTS is used by the init script.  If you add or remove options, make
102 # # sure you update this section, too.
103 # DAEMON_OPTS="-a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_LISTEN_PORT} \
104 #              -f ${VARNISH_VCL_CONF} \
105 #              -T ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT} \
106 #              -t ${VARNISH_TTL} \
107 #              -w ${VARNISH_MIN_THREADS},${VARNISH_MAX_THREADS},${VARNISH_THREAD_TIMEOUT} \
108 #              -S ${VARNISH_SECRET_FILE} \
109 #              -s ${VARNISH_STORAGE}"
110 #
111
112
113 ## Alternative 4, Do It Yourself
114 #
115 # DAEMON_OPTS=""
116