changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra > etc / systemd/system/caddy.service

changeset 8: 9d962d355197
author: Richard Westhaver <ellis@rwest.io>
date: Tue, 20 Aug 2024 21:19:10 -0400
permissions: -rw-r--r--
description: addy caddy service unit
1 # WARNING: This service does not use the --resume flag, so if you
2 # use the API to make changes, they will be overwritten by the
3 # Caddyfile next time the service is restarted. If you intend to
4 # use Caddy's API to configure it, add the --resume flag to the
5 # `caddy run` command or use the caddy-api.service file instead.
6 
7 [Unit]
8 Description=Caddy
9 Documentation=https://caddyserver.com/docs/
10 After=network.target network-online.target
11 Requires=network-online.target
12 
13 [Service]
14 Type=notify
15 User=caddy
16 Group=caddy
17 ExecStart=/usr/local/bin/caddy run --environ --config /etc/caddy/Caddyfile
18 ExecReload=/usr/local/bin/caddy reload --config /etc/caddy/Caddyfile --force
19 TimeoutStopSec=5s
20 LimitNOFILE=1048576
21 PrivateTmp=true
22 ProtectSystem=full
23 AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
24 
25 [Install]
26 WantedBy=multi-user.target