caddy-retired/systemd/caddy@.service

26 lines
517 B
INI

# caddy@.service
# For using Caddy2 and a caddyfile.
# Using caddy repository at @d see @d/README.md
[Unit]
Description=Caddy
Documentation=https://caddyserver.com/docs/
After=network.target
[Service]
# base directory must be hard coded
User=caddy
Group=caddy
WorkingDirectory=@d
ExecStart=@d/scripts/caddy %i
ExecReload=@d/scripts/caddy %i reload
TimeoutStopSec=5s
LimitNOFILE=1048576
LimitNPROC=512
PrivateTmp=true
ProtectSystem=full
AmbientCapabilities=CAP_NET_BIND_SERVICE
[Install]
WantedBy=multi-user.target