Skip to content

Instantly share code, notes, and snippets.

@nowakpiotrek
Created September 17, 2016 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nowakpiotrek/04f2b8088b647c29e2dc56adb84790f6 to your computer and use it in GitHub Desktop.
Save nowakpiotrek/04f2b8088b647c29e2dc56adb84790f6 to your computer and use it in GitHub Desktop.
Nopio Ubuntu 14.04 Varnish default file
# Configuration file for Varnish Cache.
#
# /etc/init.d/varnish expects the variables $DAEMON_OPTS, $NFILES and $MEMLOCK
# to be set from this shell script fragment.
#
# Note: If systemd is installed, this file is obsolete and ignored. You will
# need to copy /lib/systemd/system/varnish.service to /etc/systemd/system/ and
# edit that file.
# 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
DAEMON_OPTS="-a :80 \
-T localhost:6082 \
-f /etc/varnish/default.vcl \
-S /etc/varnish/secret \
-s malloc,256m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment