mirror of
https://github.com/KevinMidboe/schleppe-ha-project.git
synced 2026-01-09 18:35:29 +00:00
44 lines
929 B
Django/Jinja
44 lines
929 B
Django/Jinja
[Unit]
|
|
Description=Varnish HTTP accelerator
|
|
Documentation=https://www.varnish-cache.org/docs/6.1/ man:varnishd
|
|
|
|
[Service]
|
|
Type=simple
|
|
|
|
# Maximum number of open files (for ulimit -n)
|
|
LimitNOFILE=131072
|
|
|
|
# Locked shared memory - should suffice to lock the shared memory log
|
|
# (varnishd -l argument)
|
|
# Default log size is 80MB vsl + 1M vsm + header -> 82MB
|
|
# unit is bytes
|
|
# LimitMEMLOCK=85983232
|
|
|
|
# Varnish default
|
|
LimitMEMLOCK=82000
|
|
|
|
# Enable this to avoid "fork failed" on reload.
|
|
TasksMax=infinity
|
|
|
|
# Maximum size of the corefile.
|
|
LimitCORE=infinity
|
|
|
|
ExecStart=/usr/sbin/varnishd \
|
|
-j unix,user=vcache \
|
|
-F \
|
|
-a :80 \
|
|
-a :443 \
|
|
-p feature=+http2 \
|
|
-T localhost:6082 \
|
|
-f /etc/varnish/default.vcl \
|
|
-S /etc/varnish/secret \
|
|
-s malloc,256m
|
|
|
|
ExecReload=/usr/share/varnish/varnishreload
|
|
ProtectSystem=full
|
|
ProtectHome=true
|
|
PrivateTmp=true
|
|
PrivateDevices=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |