Differences

This shows you the differences between two versions of the page.

Link to this comparison view

caddy:caddy.service [2019/11/30 18:17] (current)
admin created
Line 1: Line 1:
 +<​code>​[Unit]
 +Description=Caddy HTTP/2 web server
 +Documentation=https://​caddyserver.com/​docs
 +After=network-online.target
 +Wants=network-online.target
  
 +[Service]
 +Restart=on-abnormal
 +;​StartLimitInterval=30000
 +;​StartLimitBurst=500
 +
 +User=www-data
 +Group=www-data
 +; Letsencrypt-issued certificates will be written to this directory.
 +Environment=CADDYPATH=/​etc/​ssl/​caddy
 +
 +ExecStart=/​usr/​local/​bin/​caddy -log stdout -agree=true -conf=/​etc/​caddy/​Caddyfile -root=/​var/​tmp
 +ExecReload=/​bin/​kill -USR1 $MAINPID
 +
 +LimitNOFILE=1048576
 +LimitNPROC=64
 +
 +PrivateTmp=true
 +PrivateDevices=true
 +ProtectHome=true
 +ProtectSystem=full
 +ReadWriteDirectories=/​etc/​ssl/​caddy
 +
 +; The following additional security directives only work with systemd v229 or later.
 +; They further retrict privileges that can be gained by caddy. Uncomment if you like.
 +; Note that you may have to add capabilities required by any plugins in use.
 +CapabilityBoundingSet=CAP_NET_BIND_SERVICE
 +AmbientCapabilities=CAP_NET_BIND_SERVICE
 +NoNewPrivileges=true
 +[Install]
 +WantedBy=multi-user.target
 +</​code>​
caddy/caddy.service.txt ยท Last modified: 2019/11/30 18:17 by admin
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0