Skip to content

Instantly share code, notes, and snippets.

@hvelarde
Last active November 23, 2016 17:14
Show Gist options
  • Save hvelarde/95811e2cbff7f58dffe68a5bb62f9071 to your computer and use it in GitHub Desktop.
Save hvelarde/95811e2cbff7f58dffe68a5bb62f9071 to your computer and use it in GitHub Desktop.
Varnish 4 configuration for Plone
# Configuration file for varnish
#
# /etc/init.d/varnish expects the variables $DAEMON_OPTS, $NFILES and $MEMLOCK
# to be set from this shell script fragment.
#
# This file should be symlinked to /etc/default/varnish
# Should we start varnishd at boot? Set to "no" to disable.
START=yes
# 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
# Listen on port 6081, administration on localhost:6082, and forward to
# one content server selected by the vcl file, based on the request.
#
DAEMON_OPTS="-a :6081 \
-T localhost:6082 \
-f /etc/varnish/default.vcl \
-S /etc/varnish/secret \
-s malloc,2G"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment