changelog shortlog graph tags branches files raw help

Mercurial > infra > etc / changeset: addy caddy service unit

changeset 8: 9d962d355197
parent 7: faec9ab70733
tag:tip
author: Richard Westhaver <ellis@rwest.io>
date: Tue, 20 Aug 2024 21:19:10 -0400
files: systemd/system/caddy.service
description: addy caddy service unit
     1.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2+++ b/systemd/system/caddy.service	Tue Aug 20 21:19:10 2024 -0400
     1.3@@ -0,0 +1,26 @@
     1.4+# WARNING: This service does not use the --resume flag, so if you
     1.5+# use the API to make changes, they will be overwritten by the
     1.6+# Caddyfile next time the service is restarted. If you intend to
     1.7+# use Caddy's API to configure it, add the --resume flag to the
     1.8+# `caddy run` command or use the caddy-api.service file instead.
     1.9+
    1.10+[Unit]
    1.11+Description=Caddy
    1.12+Documentation=https://caddyserver.com/docs/
    1.13+After=network.target network-online.target
    1.14+Requires=network-online.target
    1.15+
    1.16+[Service]
    1.17+Type=notify
    1.18+User=caddy
    1.19+Group=caddy
    1.20+ExecStart=/usr/local/bin/caddy run --environ --config /etc/caddy/Caddyfile
    1.21+ExecReload=/usr/local/bin/caddy reload --config /etc/caddy/Caddyfile --force
    1.22+TimeoutStopSec=5s
    1.23+LimitNOFILE=1048576
    1.24+PrivateTmp=true
    1.25+ProtectSystem=full
    1.26+AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
    1.27+
    1.28+[Install]
    1.29+WantedBy=multi-user.target
    1.30\ No newline at end of file