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