12345678910111213141516171819 |
- [Unit]
- Description=Caddy
- After=network.target network-online.target
- Requires=network-online.target
- [Service]
- Type=notify
- User=caddy
- Group=caddy
- ExecStart=/usr/local/caddy/bin/caddy run --environ --config /usr/local/caddy/conf/Caddyfile
- ExecReload=/usr/local/caddy/bin/caddy reload --config /usr/local/caddy/conf/Caddyfile --force
- TimeoutStopSec=5s
- LimitNOFILE=1048576
- PrivateTmp=true
- ProtectSystem=full
- AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
- [Install]
- WantedBy=multi-user.target
|