Caddy

A newer server designed to be user-friendly with automatic HTTPS by default. Caddy uses a simple and modern configuration file (Caddyfile), making it very easy to set up reverse proxy rules.

# Install

Check status on formulae.brew.sh and issue:

brew install caddy

Which prints out the following useful info. > When running the provided service, caddy's data dir will be set as:

/opt/homebrew/var/lib

And the location of the Caddyfile is:

/opt/homebrew/etc/Caddyfile

To start caddy now and restart at login:

brew services start caddy

Or, if you don't want/need a background service you can just run:

XDG_DATA_HOME="/opt/homebrew/var/lib" /opt/homebrew/opt/caddy/bin/caddy run --config /opt/homebrew/etc/Caddyfile

Finally it prints where you can find the binary (and its size):

==> Summary /opt/homebrew/Cellar/caddy/2.8.4: 39 files, 39.0MB

### Caddy Configuration

example.com { reverse_proxy / localhost:8080 reverse_proxy /another localhost:9090 }

# Caddy on LocalHost

- Caddy - caddyserver.com - Caddy API - caddyserver.com - Caddy on localhost - google.com - Caddy Setting - stackoverflow.com - HTTPs on localhost - codingforentrepreneurs.com - Automatic HTTPS with Caddy - caddyserver.com - Caddy Server Magic - youtube.com

# See also - Brew Services