Changeset View
Changeset View
Standalone View
Standalone View
files/caddy.service
- This file was added.
| [Unit] | |||||
| Description=Caddy Web Server | |||||
| Documentation=https://caddyserver.com/docs/ | |||||
| After=network.target | |||||
| [Service] | |||||
| User=caddy | |||||
| Group=caddy | |||||
| ExecStart=/usr/bin/caddy run --config /usr/share/caddy/Caddyfile --resume --environ | |||||
| ExecReload=/usr/bin/caddy reload --config /usr/share/caddy/Caddyfile | |||||
| ExecStop=/usr/bin/caddy stop | |||||
| TimeoutStopSec=5s | |||||
| LimitNOFILE=1048576 | |||||
| LimitNPROC=512 | |||||
| # Hardening options | |||||
| PrivateTmp=true | |||||
| ProtectSystem=strict | |||||
| PrivateDevices=true | |||||
| ProtectHome=true | |||||
| ReadWritePaths=/var/lib/caddy /var/log/caddy | |||||
| AmbientCapabilities=CAP_NET_BIND_SERVICE | |||||
| CapabilityBoundingSet=CAP_NET_BIND_SERVICE | |||||
| NoNewPrivileges=true | |||||
| ProtectKernelTunables=true | |||||
| ProtectKernelModules=true | |||||
| ProtectControlGroups=true | |||||
| LockPersonality=true | |||||
| [Install] | |||||
| WantedBy=multi-user.target | |||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.