source: redhat/varnish.sysconfig @ 2d455f

Revision 2d455f, 3.0 KB checked in by Tollef Fog Heen <tfheen@…>, 4 years ago (diff)

Merge r4664: Added the -S option as default in the redhat package

git-svn-id:  http://www.varnish-cache.org/svn/branches/2.1@4692 d4fa192b-c00b-0410-8231-f00ffab90ce4

  • Property mode set to 100644
Line 
1# Configuration file for varnish
2#
3# /etc/init.d/varnish expects the variable $DAEMON_OPTS to be set from this
4# shell script fragment.
5#
6
7# Maximum number of open files (for ulimit -n)
8NFILES=131072
9
10# Locked shared memory (for ulimit -l)
11# Default log size is 82MB + header
12MEMLOCK=82000
13
14# Maximum size of corefile (for ulimit -c). Default in Fedora is 0
15# DAEMON_COREFILE_LIMIT="unlimited"
16
17# This file contains 4 alternatives, please use only one.
18
19## Alternative 1, Minimal configuration, no VCL
20#
21# Listen on port 6081, administration on localhost:6082, and forward to
22# content server on localhost:8080.  Use a fixed-size cache file.
23#
24#DAEMON_OPTS="-a :6081 \
25#             -T localhost:6082 \
26#             -b localhost:8080 \
27#             -u varnish -g varnish \
28#             -s file,/var/lib/varnish/varnish_storage.bin,1G"
29
30
31## Alternative 2, Configuration with VCL
32#
33# Listen on port 6081, administration on localhost:6082, and forward to
34# one content server selected by the vcl file, based on the request.  Use a
35# fixed-size cache file.
36#
37DAEMON_OPTS="-a :6081 \
38             -T localhost:6082 \
39             -f /etc/varnish/default.vcl \
40             -u varnish -g varnish \
41             -S /etc/varnish/secret \
42             -s file,/var/lib/varnish/varnish_storage.bin,1G"
43
44
45## Alternative 3, Advanced configuration
46#
47# See varnishd(1) for more information.
48#
49# # Main configuration file. You probably want to change it :)
50# VARNISH_VCL_CONF=/etc/varnish/default.vcl
51#
52# # Default address and port to bind to
53# # Blank address means all IPv4 and IPv6 interfaces, otherwise specify
54# # a host name, an IPv4 dotted quad, or an IPv6 address in brackets.
55# VARNISH_LISTEN_ADDRESS=
56# VARNISH_LISTEN_PORT=6081
57#
58# # Telnet admin interface listen address and port
59# VARNISH_ADMIN_LISTEN_ADDRESS=127.0.0.1
60# VARNISH_ADMIN_LISTEN_PORT=6082
61#
62# # The minimum number of worker threads to start
63# VARNISH_MIN_THREADS=1
64#
65# # The Maximum number of worker threads to start
66# VARNISH_MAX_THREADS=1000
67#
68# # Idle timeout for worker threads
69# VARNISH_THREAD_TIMEOUT=120
70#
71# # Cache file location
72# VARNISH_STORAGE_FILE=/var/lib/varnish/varnish_storage.bin
73#
74# # Cache file size: in bytes, optionally using k / M / G / T suffix,
75# # or in percentage of available disk space using the % suffix.
76# VARNISH_STORAGE_SIZE=1G
77#
78# # Backend storage specification
79# VARNISH_STORAGE="file,${VARNISH_STORAGE_FILE},${VARNISH_STORAGE_SIZE}"
80#
81# # Default TTL used when the backend does not specify one
82# VARNISH_TTL=120
83#
84# # DAEMON_OPTS is used by the init script.  If you add or remove options, make
85# # sure you update this section, too.
86# DAEMON_OPTS="-a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_LISTEN_PORT} \
87#              -f ${VARNISH_VCL_CONF} \
88#              -T ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT} \
89#              -t ${VARNISH_TTL} \
90#              -w ${VARNISH_MIN_THREADS},${VARNISH_MAX_THREADS},${VARNISH_THREAD_TIMEOUT} \
91#              -u varnish -g varnish \
92#              -s ${VARNISH_STORAGE}"
93#
94
95
96## Alternative 4, Do It Yourself. See varnishd(1) for more information.
97#
98# DAEMON_OPTS=""
Note: See TracBrowser for help on using the repository browser.