Last active
March 29, 2020 21:41
-
-
Save aschiavon91/8c35ae1faf27fed469b8fad01ac1e9ca to your computer and use it in GitHub Desktop.
Caddy service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=Caddy HTTP/2 web server | |
| Documentation=https://caddyserver.com/docs | |
| After=network-online.target | |
| Wants=network-online.target | |
| [Service] | |
| Restart=on-failure | |
| StartLimitInterval=86400 | |
| StartLimitBurst=5 | |
| User=www-data | |
| Group=www-data | |
| 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 | |
| [Install] | |
| WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment