Differences

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

Link to this comparison view

caddy:caddy.service [2020/02/21 12:04] (current)
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: 2020/02/21 12:04 (external edit)
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0