mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-30 22:34:15 -05:00
22 lines
585 B
SYSTEMD
22 lines
585 B
SYSTEMD
|
; see `man systemd.unit` for configuration details
|
||
|
; the man section also explains *specifiers* `%x`
|
||
|
|
||
|
[Unit]
|
||
|
Description=Caddy HTTP/2 web server %I
|
||
|
Documentation=https://caddyserver.com/docs
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
; run user and group for caddy
|
||
|
User=%i
|
||
|
Group=http
|
||
|
ExecStart=/usr/bin/caddy -agree=true -conf=/etc/caddy/Caddyfile
|
||
|
Restart=on-failure
|
||
|
; create a private temp folder that is not shared with other processes
|
||
|
PrivateTmp=true
|
||
|
; limit the number of file descriptors, see `man systemd.exec` for more limit settings
|
||
|
LimitNOFILE=8192
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|