Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 1.08 KB

README.md

File metadata and controls

42 lines (34 loc) · 1.08 KB

OAuth Faucet + Verifier backend

Docker build:

git submodule update --init
docker build -t openworklabs/verifier .
docker run -it \
    -e GITHUB_CLIENT_ID=... \
    -e GITHUB_CLIENT_SECRET=... \
    -e AWS_REGION=... \
    -e AWS_ACCESS_KEY=... \
    -e AWS_SECRET_KEY=... \
    -e LOTUS_API_DIAL_ADDR=... \
    -e LOTUS_API_TOKEN=... \
    -e LOTUS_VERIFIER_ADDR=... \
    -e MIN_ACCOUNT_AGE_DAYS=... \
    -e MAX_ALLOWANCE_BYTES=... \
    -e MAX_ALLOWANCE_FIL=... \
    -e FAUCET_ADDR=... \
    -e FAUCET_RATE_LIMIT=... \
    -p 8080:8080 \
    openworklabs/verifier

NOTE - please look at env.go for the most up to date environment variable configurations.

The PathToBlocklistTxtFile environment variable (PATH_TO_BLOCKLIST_TXT_FILE) should point to a .txt file, use absolute paths. The .txt file should contain valid Filecoin addresses, 1 per line like:

t0123
t15vmf65zmgphczybqlhc6dnfntve4c7sk7eflmly

Local dev:

Load environment variables (been using direnv) so: with a .envrc and then direnv allow

cd filecoin-ffi && make && cd ../
go run *.go