Skip to content

Instantly share code, notes, and snippets.

@darth-veitcher
Last active January 7, 2017 21:10
Show Gist options
  • Save darth-veitcher/3ce67de331499091224682949c8c6734 to your computer and use it in GitHub Desktop.
Save darth-veitcher/3ce67de331499091224682949c8c6734 to your computer and use it in GitHub Desktop.
Using Caddy Server as a reverse proxy
# Download saved version from Dropbox and extract
# http://unix.stackexchange.com/a/85195
sudo mkdir -p /data/caddy && sudo chown -R $USER:$USER /data/caddy
wget -qO- "https://db.tt/2coec0FX" | tar xvz -C /data/caddy

# Allow Caddy to bind to 80/443 without needing
# root priveleges
cd /data/caddy
sudo setcap cap_net_bind_service=+ep caddy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment