caddy.service 496 B

12345678910111213141516171819
  1. [Unit]
  2. Description=Caddy
  3. After=network.target network-online.target
  4. Requires=network-online.target
  5. [Service]
  6. Type=notify
  7. User=caddy
  8. Group=caddy
  9. ExecStart=/usr/local/caddy/bin/caddy run --environ --config /usr/local/caddy/conf/Caddyfile
  10. ExecReload=/usr/local/caddy/bin/caddy reload --config /usr/local/caddy/conf/Caddyfile --force
  11. TimeoutStopSec=5s
  12. LimitNOFILE=1048576
  13. PrivateTmp=true
  14. ProtectSystem=full
  15. AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
  16. [Install]
  17. WantedBy=multi-user.target