2019-10-06 20:55:56 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Caddy HTTP/2 web server
|
|
|
|
Documentation=https://caddyserver.com/docs
|
2020-09-14 21:48:51 +00:00
|
|
|
After=network.target
|
2019-10-06 20:55:56 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Restart=on-abnormal
|
|
|
|
|
|
|
|
User=www-data
|
|
|
|
Group=www-data
|
2020-09-14 21:48:51 +00:00
|
|
|
Environment=HOME=/var/lib/caddy
|
2019-10-06 20:55:56 +00:00
|
|
|
|
2020-09-14 21:48:51 +00:00
|
|
|
ExecStart=/usr/local/bin/caddy run --environ --config /etc/caddy/Caddyfile
|
|
|
|
ExecReload=/usr/local/bin/caddy reload --config /etc/caddy/Caddyfile
|
2019-10-06 20:55:56 +00:00
|
|
|
|
|
|
|
TimeoutStopSec=5s
|
|
|
|
LimitNOFILE=8192
|
|
|
|
LimitNPROC=64
|
|
|
|
|
|
|
|
StartLimitInterval=600
|
|
|
|
;StartLimitBurst=5
|
|
|
|
RestartSec=60
|
|
|
|
PermissionsStartOnly=true
|
|
|
|
|
|
|
|
PrivateTmp=true
|
|
|
|
;PrivateDevices=true
|
|
|
|
;ProtectHome=true
|
2020-09-14 21:48:51 +00:00
|
|
|
ProtectSystem=full
|
|
|
|
|
|
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
2019-10-06 20:55:56 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|