From b54fa4123975195c721ff5a5c0b43c4622009676 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 24 Feb 2021 11:55:56 -0700 Subject: Update docs; commit setcap.sh --- README.md | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 620573e..b32be89 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ The simplest, cross-platform way is to download from [GitHub Releases](https://github.com/caddyserver/caddy/releases) and place the executable file in your PATH. -For other install options, see https://caddyserver.com/docs/download. +For other install options, see https://caddyserver.com/docs/install. ## Build from source @@ -89,15 +89,7 @@ $ go build When you run Caddy, it may try to bind to low ports unless otherwise specified in your config. If your OS requires elevated privileges for this, you will need to give your new binary permission to do so. On Linux, this can be done easily with: `sudo setcap cap_net_bind_service=+ep ./caddy` -If you prefer to use `go run` which creates temporary binaries, you can still do this. Make an executable file called `setcap.sh` (or whatever you want) with these contents: - -```bash -#!/bin/sh -sudo setcap cap_net_bind_service=+ep "$1" -"$@" -``` - -then you can use `go run` like so: +If you prefer to use `go run` which only creates temporary binaries, you can still do this with the included `setcap.sh` like so: ```bash $ go run -exec ./setcap.sh main.go -- cgit v1.2.3