galaxy-caddy/templates/caddy.service.j2

26 lines
604 B
Text
Raw Normal View History

2019-02-01 14:22:04 +00:00
[Unit]
Description=Caddy HTTP/2 web server
Documentation=https://caddyserver.com/docs
After=network.target
[Service]
# Service config and instructions
2019-02-01 14:22:04 +00:00
WorkingDirectory={{ caddy_home }}
User=caddy
LimitNOFILE=8192
2020-05-19 19:26:04 +00:00
ExecStart=/usr/bin/caddy run --environ --config /etc/caddy/Caddyfile
ExecReload=/usr/bin/caddy reload --config /etc/caddy/Caddyfile
2019-02-01 14:22:04 +00:00
Restart=on-failure
StartLimitInterval=600
TimeoutStopSec=5s
KillSignal=SIGQUIT
# Service security
ProtectHome=true
ProtectSystem=full
PrivateTmp=true
ReadWritePaths={{ caddy_home }}
ReadWriteDirectories={{ caddy_home }}
2019-02-01 14:22:04 +00:00
[Install]
WantedBy=multi-user.target