2021-07-13 12:34:51 -07:00
|
|
|
#!/bin/bash
|
2021-07-17 10:54:00 -07:00
|
|
|
|
2021-08-26 09:21:08 -07:00
|
|
|
# BEGIN: Optional configuration settings
|
|
|
|
|
|
|
|
|
|
# This mnemonic is used to set up persistent public key for e2ee
|
2021-08-26 10:27:22 -07:00
|
|
|
# Replace this with your own 12-word mnemonic.
|
2021-09-28 17:51:19 -07:00
|
|
|
# You can get one at https://wallet.fullstack.cash.
|
2021-08-26 09:21:08 -07:00
|
|
|
export MNEMONIC="olive two muscle bottom coral ancient wait legend bronze useful process session"
|
|
|
|
|
|
|
|
|
|
# The human readable name this IPFS node identifies as.
|
2021-09-08 12:02:57 -07:00
|
|
|
export COORD_NAME=bch-wallet-service-generic
|
2021-08-26 09:21:08 -07:00
|
|
|
|
|
|
|
|
# Allow this node to function as a circuit relay. It must not be behind a firewall.
|
2021-12-29 18:17:35 -08:00
|
|
|
#export ENABLE_CIRCUIT_RELAY=1
|
2021-09-28 17:51:19 -07:00
|
|
|
# For browsers to use your circuit realy, you must set up a domain, SSL certificate,
|
|
|
|
|
# and you must forward that subdomain to the IPFS_WS_PORT.
|
2021-09-28 20:11:25 -07:00
|
|
|
#export CR_DOMAIN=subdomain.yourdomain.com
|
2021-08-26 09:21:08 -07:00
|
|
|
|
2021-12-31 15:42:16 -08:00
|
|
|
# BCH Wallet Service Settings
|
|
|
|
|
# Change APISERVER to point to your own installation of bch-api
|
2021-07-17 10:54:00 -07:00
|
|
|
export APISERVER=https://api.fullstack.cash/v5/
|
2021-12-31 15:42:16 -08:00
|
|
|
# These settings are used to proxy a subscription to FullStack.cash.
|
2022-03-05 14:23:14 -08:00
|
|
|
#export GET_JWT_AT_STARTUP=1
|
2021-12-31 15:42:16 -08:00
|
|
|
export AUTHSERVER=https://auth.fullstack.cash
|
2021-07-17 10:54:00 -07:00
|
|
|
export FULLSTACKLOGIN=demo@demo.com
|
|
|
|
|
export FULLSTACKPASS=demo
|
|
|
|
|
|
2021-08-26 09:21:08 -07:00
|
|
|
# END: Optional configuration settings
|
2021-07-17 10:54:00 -07:00
|
|
|
|
2021-08-26 09:21:08 -07:00
|
|
|
|
|
|
|
|
# Production database connection string.
|
2024-03-24 07:25:48 -07:00
|
|
|
export DBURL=mongodb://172.17.0.1:5557/ipfs-service-prod
|
2021-08-26 09:21:08 -07:00
|
|
|
|
|
|
|
|
# Configure REST API port
|
2021-12-29 17:46:05 -08:00
|
|
|
export PORT=5010
|
2021-08-26 09:21:08 -07:00
|
|
|
|
2021-12-29 17:46:05 -08:00
|
|
|
# Production settings using external go-ipfs node.
|
2023-10-28 11:24:40 -07:00
|
|
|
export SVC_ENV=prod
|
2021-12-29 17:46:05 -08:00
|
|
|
export IPFS_HOST=172.17.0.1
|
|
|
|
|
export IPFS_API_PORT=5001
|
2024-03-24 07:25:48 -07:00
|
|
|
export IPFS_TCP_PORT=5668
|
|
|
|
|
export IPFS_WS_PORT=5669
|
2025-02-23 11:25:20 -07:00
|
|
|
export IPFS_WEB_RTC_PORT=5670
|
2021-12-29 17:46:05 -08:00
|
|
|
|
2023-10-28 11:24:40 -07:00
|
|
|
# Set the debug level for helia-coord. 0-3.
|
|
|
|
|
# 0 = no debug logs. 3 = maximum debug logs.
|
|
|
|
|
export DEBUG_LEVEL=0
|
|
|
|
|
|
2025-02-23 09:41:55 -07:00
|
|
|
# Use this if the IPFS node has a publically accessible IP address.
|
|
|
|
|
#export CONNECT_PREF=direct
|
|
|
|
|
# Use this if the IPFS node is behind a NAT or Firewall and cannot be accessed directly.
|
|
|
|
|
export CONNECT_PREF=cr
|
|
|
|
|
|
2021-07-13 12:34:51 -07:00
|
|
|
npm start
|