caddy.service 406 B

123456789101112131415161718
  1. [Unit]
  2. Description=Caddy
  3. Documentation=https://caddyserver.com/docs/
  4. After=network.target
  5. [Service]
  6. User=root
  7. ExecStart=/usr/bin/caddy run --config /root/Caddyfile
  8. ExecReload=/usr/bin/caddy reload --config /root/Caddyfile
  9. TimeoutStopSec=5s
  10. LimitNOFILE=1048576
  11. LimitNPROC=512
  12. PrivateTmp=true
  13. ProtectSystem=full
  14. AmbientCapabilities=CAP_NET_BIND_SERVICE
  15. [Install]
  16. WantedBy=multi-user.target