Skip to content

Instantly share code, notes, and snippets.

@digitalmio
Created July 17, 2021 22:41
Show Gist options
  • Save digitalmio/306b9db1483c6dbb93b7ecde4c1efdba to your computer and use it in GitHub Desktop.
Save digitalmio/306b9db1483c6dbb93b7ecde4c1efdba to your computer and use it in GitHub Desktop.
Next JS with Caddy server

Install Caddy

This will add 3rd party Deb repo and install Caddy 2.

apt install -y debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | apt-key add -
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list
apt update
apt install caddy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment