You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Hugo Thunnissen ad253ac07c Add main.wasm to gitignore 2 years ago
public Initial commit 2 years ago
.gitignore Add main.wasm to gitignore 2 years ago
README.md Initial commit 2 years ago
go.mod Initial commit 2 years ago
main.go Initial commit 2 years ago
mime.types Initial commit 2 years ago
nginx.conf Initial commit 2 years ago

README.md

Wasm attempt

build:

GOOS=js GOARCH=wasm go build -o public/main.wasm

Run webserver:

docker run -ti \
    --net=host  \
    -v "$(pwd)/mime.types":/etc/nginx/mime.types:ro \
    -v "$(pwd)"/nginx.conf:/etc/nginx/sites-enabled/default
    -v "$(pwd):$(pwd)" \
    hugotty/nginx:latest