All checks were successful
Version Bump Galaxy.yml / Version Bump Galaxy.yml (push) Successful in 4s
27 lines
794 B
Django/Jinja
27 lines
794 B
Django/Jinja
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
# SPDX-FileCopyrightText: 2025 Dosh LLC
|
|
[Unit]
|
|
Description=Caddy
|
|
Documentation=https://caddyserver.com/docs/
|
|
After=network.target network-online.target
|
|
Requires=network-online.target
|
|
StartLimitIntervalSec=86400
|
|
StartLimitBurst=5
|
|
|
|
[Service]
|
|
Type=notify
|
|
Restart=on-failure
|
|
User={{ CADDY_USER_NAME }}
|
|
Group={{ CADDY_GROUP_NAME }}
|
|
ExecStart={{ CADDY_INSTALL_PATH }} run --envfile {{ CADDY_CONFIG_PATH }}/.env --config {{ CADDY_CONFIG_PATH }}/Caddyfile
|
|
ExecReload={{ CADDY_INSTALL_PATH }} reload --config {{ CADDY_CONFIG_PATH }}/Caddyfile --force
|
|
TimeoutStopSec=5s
|
|
LimitNOFILE=1048576
|
|
PrivateTmp=true
|
|
ProtectSystem=full
|
|
PrivateDevices=true
|
|
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
|
|
NoNewPrivileges=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|