diff options
author | carlwgeorge | 2017-05-18 11:23:42 -0500 |
---|---|---|
committer | carlwgeorge | 2017-05-18 11:54:57 -0500 |
commit | 97c40162b0e3ffc7f76a942a0a4cc74255224061 (patch) | |
tree | 9d734ed7782f77309f7ee830d5a65d4c46ccfa4d /caddy.service | |
parent | 49fb7df51ea7d9869f87ce5473e6ae1bcaa870b9 (diff) | |
download | aur-97c40162b0e3ffc7f76a942a0a4cc74255224061.tar.gz |
0.10.2-2
* Remove conflicts. It is the responsiblity of alternate packages (-git, -bin,
etc.) to conflict with the main package. The main package doesn't need to also
conflict with them.
* Build from GitHub tarball, not git clone.
* Build using `go build` directly, not build.bash.
* Run as the existing http user.
* Store tls things in /var/lib/caddy (created by a tmpfiles config).
* Create CADDYPATH with systemd tmpfiles, not in caddy.install.
* Run appropriate systemctl commands in caddy.install.
* Enable dns provider extensions.
* Include a default example page (index.html and svg image).
* Include a default Caddyfile.
Diffstat (limited to 'caddy.service')
-rw-r--r-- | caddy.service | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/caddy.service b/caddy.service new file mode 100644 index 000000000000..cb67b1e9880e --- /dev/null +++ b/caddy.service @@ -0,0 +1,23 @@ +[Unit] +Description=Caddy HTTP/2 web server +Documentation=https://caddyserver.com/docs +After=network.target + +[Service] +User=http +Group=http +Environment=CADDYPATH=/var/lib/caddy +EnvironmentFile=-/etc/caddy/Envfile +ExecStart=/usr/bin/caddy -log stdout -agree -conf /etc/caddy/Caddyfile -root /tmp +ExecReload=/usr/bin/kill -USR1 $MAINPID +LimitNOFILE=1048576 +LimitNPROC=64 +PrivateTmp=true +PrivateDevices=true +ProtectHome=true +ProtectSystem=strict +ReadWriteDirectories=/var/lib/caddy +AmbientCapabilities=CAP_NET_BIND_SERVICE + +[Install] +WantedBy=multi-user.target |