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.js
andworker.js
to js directory