# Configuration file for varnish # # /etc/init.d/varnish expects the variables $DAEMON_OPTS, $NFILES and $MEMLOCK # to be set from this shell script fragment. # # Set this to 1 to make systemd reload try to switch vcl without restart. RELOAD_VCL=1 # Maximum number of open files (for ulimit -n) NFILES=131072 # Maximum locked memory size (for ulimit -l) # Used for locking the shared memory log in memory. If you increase log size, # you need to increase this number as well MEMLOCK=82000 # Default varnish instance name is the local nodename. Can be overridden with # the -n switch, to have more instances on a single server. INSTANCE=$(uname -n) ## Alternative 3, Advanced configuration # # See varnishd(1) for more information. # # # Main configuration file. You probably want to change it :) VARNISH_VCL_CONF=/etc/varnish/{{ varnish_vcl_conf }} # # # Default address and port to bind to # # Blank address means all IPv4 and IPv6 interfaces, otherwise specify # # a host name, an IPv4 dotted quad, or an IPv6 address in brackets. VARNISH_LISTEN_ADDRESS={{ varnish_listen_address }} VARNISH_LISTEN_PORT={{ varnish_listen_port }} # # # Telnet admin interface listen address and port VARNISH_ADMIN_LISTEN_ADDRESS={{ varnish_admin_listen_address }} VARNISH_ADMIN_LISTEN_PORT={{ varnish_admin_listen_port }} # # Shared secret file for admin interface VARNISH_SECRET_FILE=/etc/varnish/secret # # The minimum number of worker threads to start VARNISH_MIN_THREADS={{ varnish_min_threads }} # # # The Maximum number of worker threads to start VARNISH_MAX_THREADS={{ varnish_max_threads }} # # # Idle timeout for worker threads VARNISH_THREAD_TIMEOUT={{ varnish_thread_timeout }} # # # Backend storage specification VARNISH_STORAGE="{{ varnish_storage }}" # # User and group for the varnishd worker processes VARNISH_USER={{ varnish_user }} VARNISH_GROUP={{ varnish_group }} # # sure you update this section, too. DAEMON_OPTS=" -p default_keep={{ varnish_ttl }} {{ varnish_additional_options }}"