2021-12-29 17:28:35 -08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
# This script is an example for running a production environment, which is
|
|
|
|
|
# defined by running an external go-ipfs node.
|
|
|
|
|
|
|
|
|
|
# Ports
|
|
|
|
|
export PORT=5010 # REST API port
|
|
|
|
|
|
|
|
|
|
# The human-readible name that is used when displaying data about this node.
|
|
|
|
|
export COORD_NAME=ipfs-service-provider-generic
|
|
|
|
|
|
|
|
|
|
# This is used for end-to-end encryption (e2ee).
|
|
|
|
|
export MNEMONIC="churn aisle shield silver ladder swear hunt slim pen demand spoil veteran"
|
|
|
|
|
|
|
|
|
|
# 0 = less verbose. 3 = most verbose
|
2023-05-13 07:03:49 -07:00
|
|
|
export DEBUG_LEVEL=0
|
2021-12-29 17:28:35 -08:00
|
|
|
|
|
|
|
|
# Production settings that use external IPFS node.
|
|
|
|
|
# https://github.com/christroutner/docker-ipfs
|
|
|
|
|
export SVC_ENV=production
|
2023-02-08 14:33:15 -08:00
|
|
|
export IPFS_HOST=localhost
|
|
|
|
|
# export IPFS_HOST=172.17.0.1
|
2021-12-29 17:28:35 -08:00
|
|
|
export IPFS_API_PORT=5001
|
|
|
|
|
|
2021-12-31 15:34:40 -08:00
|
|
|
# Configure IPFS ports
|
|
|
|
|
export IPFS_TCP_PORT=4001
|
|
|
|
|
#export IPFS_WS_PORT=5269
|
|
|
|
|
|
2021-12-29 17:28:35 -08:00
|
|
|
# MongoDB connection string.
|
|
|
|
|
export DBURL=mongodb://localhost:27017/ipfs-service-dev
|
|
|
|
|
|
|
|
|
|
npm start
|