Browse Source

Use a smaller size for varnish cache on disk

master
Alex 2 years ago
parent
commit
04998bc7f8
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
  1. 2
      templates/varnish.service.j2

2
templates/varnish.service.j2

@ -8,4 +8,4 @@ RestartSec=10
CacheDirectory=varnish
ExecStart=
ExecStart=/usr/sbin/varnishd -F -a {{ varnish.frontend.sock }},user={{ varnish.frontend.user }},group={{ varnish.frontend.group }},mode={{ varnish.frontend.mode }},PROXY -p default_ttl=1800 -p default_grace=60 -p default_keep=120 -p feature=+http2 -p tcp_fastopen=on -j unix,user={{ varnish.jail.user }} -f /etc/varnish/default.vcl -s file,/var/cache/varnish/file,10G
ExecStart=/usr/sbin/varnishd -F -a {{ varnish.frontend.sock }},user={{ varnish.frontend.user }},group={{ varnish.frontend.group }},mode={{ varnish.frontend.mode }},PROXY -p default_ttl=300 -p default_grace=240 -p default_keep=120 -p feature=+http2 -p tcp_fastopen=on -j unix,user={{ varnish.jail.user }} -f /etc/varnish/default.vcl -s file,/var/cache/varnish/file,4G