mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-22 09:12:05 -07:00
34 lines
729 B
Bash
Executable File
34 lines
729 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# test
|
|
|
|
# Full node
|
|
export RPC_BASEURL=http://172.17.0.1:8332/
|
|
export RPC_USERNAME=bitcoin
|
|
export RPC_PASSWORD=password
|
|
export NETWORK=mainnet
|
|
|
|
# SLPDB
|
|
export SLPDB_URL=http://172.17.0.1:12300/
|
|
export SLPDB_PASS=somelongpassword
|
|
|
|
# Blockbook Indexer
|
|
export BLOCKBOOK_URL=https://172.17.0.1:9131/
|
|
# Allow node.js to make network calls to https using self-signed certificate.
|
|
export NODE_TLS_REJECT_UNAUTHORIZED=0
|
|
|
|
# Redis DB
|
|
export REDIS_PORT=6379
|
|
export REDIS_HOST=172.17.0.1
|
|
|
|
# JWT Token Secret
|
|
export TOKENSECRET=somelongsecretvalue
|
|
|
|
# So that bch-api can call bch-js locally.
|
|
export LOCAL_RESTURL=http://127.0.0.1:3000/v3/
|
|
|
|
# slp-api alternative SLP validator.
|
|
export SLP_API_URL=http://10.0.0.5:5001/
|
|
|
|
npm start
|