Skip to content

Instantly share code, notes, and snippets.

@lkarsten
Created August 26, 2015 09:24
Show Gist options
  • Save lkarsten/281a493d55faf3e1551b to your computer and use it in GitHub Desktop.
Save lkarsten/281a493d55faf3e1551b to your computer and use it in GitHub Desktop.
varnish.service
[Unit]
Description=Varnish HTTP accelerator
[Service]
Type=forking
LimitNOFILE=131072
LimitMEMLOCK=82000
ExecStartPre=/opt/varnish/sbin/varnishd -C -f /etc/varnish/default.vcl
ExecStart=/opt/varnish/sbin/varnishd -a :80 \
-T localhost:6082 \
-f /etc/varnish/default.vcl \
-S /etc/varnish/secret \
-p fetch_chunksize=8k \
-p send_timeout=1800 \
-a 127.0.0.1:6086,PROXY \
-s malloc,2500M
#ExecReload=/usr/share/varnish/reload-vcl
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment