sudo apt install golang
export GOPATH=~/go
go get github.com/gorilla/websocket
cd wsproxy
go build
./wsproxy
- download caddy and install it
- edit Caddyfile as you like
caddy
- see https://github.com/ohac/cpuminer
- copy
wasmminer.wasm,wasmminer.js,em.jsandworker.jsto js directory