add Webi installer, and Linux & Windows hints

This commit is contained in:
AJ ONeal 2020-10-08 15:22:11 -06:00 committed by GitHub
parent 08533f5045
commit 3bf7aade1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ All our [official distributions](https://github.com/caddyserver/dist) come with
## Static binaries ## Static binaries
You can **[download Caddy from GitHub](https://github.com/caddyserver/caddy/releases)**, where new releases are immediately published. You can **[download Caddy from GitHub](https://github.com/caddyserver/caddy/releases)**, where new releases are immediately published, and place it in your PATH.
Using `curl`: Using `curl`:
@ -31,6 +31,22 @@ Replace `ASSET` with the filename for your platform.
[**View on Docker Hub**](https://hub.docker.com/_/caddy) [**View on Docker Hub**](https://hub.docker.com/_/caddy)
## Linux & Raspberry Pi
You can use Webi to automate the processes of downloading the latest release and putting it
in your PATH, without requiring admin permissions.
<pre><code class="cmd bash">curl -sS https://webinstall.dev/caddy | bash</code></pre>
If you'd like a simple way to launch Caddy as a system service and bind to privilege ports,
see the Webi [Caddy Cheat Sheet](https://webinstall.dev/caddy).
To allow non-root users to bind to ports 80 and 443, use setcap.
```
sudo setcap cap_net_bind_service=+ep
```
## Debian, Ubuntu, Raspbian ## Debian, Ubuntu, Raspbian
<pre><code class="cmd"><span class="bash">echo "deb [trusted=yes] https://apt.fury.io/caddy/ /" \ <pre><code class="cmd"><span class="bash">echo "deb [trusted=yes] https://apt.fury.io/caddy/ /" \
@ -65,6 +81,20 @@ RHEL/CentOS 7:
## macOS ## macOS
**Homebrew**
<pre><code class="cmd bash">brew install caddy</code></pre> <pre><code class="cmd bash">brew install caddy</code></pre>
[**View the Homebrew formula**](https://formulae.brew.sh/formula/caddy) [**View the Homebrew formula**](https://formulae.brew.sh/formula/caddy)
**Webi**
<pre><code class="cmd bash">curl -sS https://webinstall.dev/caddy | bash</code></pre>
[**View the Webi installer**](https://github.com/webinstall/webi-installers/tree/master/caddy)
## Windows 10
<pre><code class="cmd pwsh">curl.exe -A MS https://webinstall.dev/caddy | powershell</code></pre>
You may need to adjust the Windows firewall rules to allow non-localhost incoming connections.