summaryrefslogtreecommitdiff
path: root/www-servers/caddy/files/caddy.service
blob: b11d0827ef83ef8fc0139107bbe37fc2463e9f0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[Unit]
Description=Caddy web server
After=network.target

[Service]
Type=simple
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_BIND_SERVICE
NoNewPrivileges=true
User=http
Environment=CADDY_OPTS="run --config /etc/caddy/caddy_config.json"
Restart=on-failure
RestartSec=5s
ExecStart=/usr/bin/caddy $CADDY_OPTS

[Install]
WantedBy=multi-user.target