Last active
January 5, 2016 18:33
-
-
Save dacresni/19d32920e83846187eba to your computer and use it in GitHub Desktop.
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.target | |
[Service] | |
User=caddy | |
#User=root | |
PermissionsStartOnly=true | |
ExecStartPre=/sbin/setcap cap_net_bind_service=+ep /usr/bin/caddy | |
ExecStart=/usr/bin/caddy -conf=/etc/caddy/Caddyfile | |
WorkingDirectory=/srv | |
LimitNOFILE=4096 | |
Restart=on-failure | |
CapabilityBoundingSet=CAP_NET_BIND_SERVICE | |
#systemd can't GRANT capabilities :-( | |
[Install] | |
WantedBy=multi-user.target | |
/etc/systemd/system/caddy.service (END) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment