summarylogtreecommitdiffstats
path: root/service
blob: 72e6b1b4185548a66e3a689ad6d4eb81f1a7b85a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[Unit]
Description=Caddy Web server
Documentation=https://caddyserver.com/docs/
After=network-online.target

[Service]
User=http
Group=http
ExecStart=/usr/bin/caddy run --environ
ExecReload=/usr/bin/caddy reload
WorkingDirectory=/srv/http
PrivateTmp=true
ProtectHome=true
PrivateDevices=true
ProtectSystem=strict
ReadWritePaths=/srv/http/.local /srv/http/.config
AmbientCapabilities=CAP_NET_BIND_SERVICE
TimeoutStopSec=5s

[Install]
WantedBy=multi-user.target