caddy-retired/systemd/caddy@.service

26 lines
517 B
INI
Raw Permalink Normal View History

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