e24be310ae
systemd service install now uses sed to insert the repo directory into the call service script before deploying. renamed install script to fetch as to avoid confusion as it fetches the basic binary.
25 lines
517 B
Desktop File
25 lines
517 B
Desktop File
# 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
|