Skip to content

Instantly share code, notes, and snippets.

View oscartbeaumont's full-sized avatar

Oscar Beaumont oscartbeaumont

View GitHub Profile
@oscartbeaumont
oscartbeaumont / webserver2.go
Created January 26, 2019 07:12
A Basic Go Webserver Using Lego listening on the ports 8443 and 8080.
package main
import (
"crypto"
"crypto/ecdsa"
"crypto/elliptic"
"crypto/rand"
"fmt"
"log"
@oscartbeaumont
oscartbeaumont / demo.sh
Created January 22, 2019 23:48
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 {