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]
|
2021-08-25 13:25:57 +00:00
|
|
|
Restart=on-failure
|
2019-10-06 20:55:56 +00:00
|
|
|
|
|
|
|
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
|
2021-09-18 15:14:19 +00:00
|
|
|
LimitNPROC=256
|
2019-10-06 20:55:56 +00:00
|
|
|
|
|
|
|
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
|