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. 9 Documentation=https://caddyserver.com/docs/ 10 After=network.target network-online.target 11 Requires=network-online.target 17 ExecStart=/usr/local/bin/caddy run --environ --config /etc/caddy/Caddyfile 18 ExecReload=/usr/local/bin/caddy reload --config /etc/caddy/Caddyfile --force 23 AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE 26 WantedBy=multi-user.target