galaxy-caddy/templates/caddy.service.j2

26 lines
597 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
ExecStart=/usr/bin/caddy -agree=true -email={{ caddy_email }} -conf=/etc/caddy/Caddyfile
2019-02-01 14:22:04 +00:00
ExecReload=/bin/kill -USR1 $MAINPID
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