Last active
December 20, 2015 15:09
-
-
Save jeremyjbowers/6151952 to your computer and use it in GitHub Desktop.
Basic Varnish configuration for /etc/default/varnish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Oh, wow. So those other configuration files | |
# looked pretty readable. This one, though, | |
# looks OOOOOLLLD. It is old. And so it's | |
# less readable. But let's talk about it. | |
# Run on startup? Yes. | |
START=yes | |
# Set the number of files this daemon can | |
# touch. We need los of them because each | |
# open socket for a network connection needs | |
# a single file open. | |
NFILES=131072 | |
# Memlock is http://linux.die.net/man/5/limits.conf, | |
# the maximum memory this process can use, | |
# in KB. | |
MEMLOCK=82000 | |
# What things do we want to pass to the daemon? | |
# -a :8000 means listen on address (port) 8000. | |
# -T localhost:82 means allow the Varnish admin | |
# to run locally on port 82. | |
# -f points to our Varnish config file. | |
# -S Is where we hide Varnish secrets. | |
# -s is how much cache we want -- 16mb should | |
# be just fine. | |
DAEMON_OPTS="-a :8000 \ | |
-T localhost:82 \ | |
-f /etc/varnish/varnish.vcl \ | |
-S /etc/varnish/secret \ | |
-s malloc,16m" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment