Skip to content

Instantly share code, notes, and snippets.

@oscartbeaumont
Created January 22, 2019 23:48
Show Gist options
  • Save oscartbeaumont/75a94ed277799185348269530990edc0 to your computer and use it in GitHub Desktop.
Save oscartbeaumont/75a94ed277799185348269530990edc0 to your computer and use it in GitHub Desktop.
Caddy Bug Demo
# Alpine Linux Installation
# Port 8443 mapped to 443
# Port 8080 mapped to 80
apk add ca-certificates nano
mkdir /workspace
cd /workspace
wget https://github.com/mholt/caddy/releases/download/v0.11.2/caddy_v0.11.2_linux_amd64.tar.gz
tar -xvzf caddy_v0.11.2_linux_amd64.tar.gz
nano Caddyfile
https://lan.otbeaumont.me {
status 200 /
}
https://drone.otbeaumont.me {
status 200 /
}
./caddy -conf ./Caddyfile -agree -email [email protected] -ca https://acme-staging-v02.api.letsencrypt.org/directory -https-port 8443 -http-port 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment