fix(shell-scripts): Added shell-script dir with example scripts

This commit is contained in:
Chris Troutner
2021-09-28 16:58:57 -07:00
parent 3924812985
commit a8ad4149e0
2 changed files with 40 additions and 5 deletions
@@ -1,18 +1,22 @@
#!/bin/bash #!/bin/bash
# This script is an example for running a generic ipfs-service-provider instance.
# Ports # Ports
export PORT=5001 # REST API port export PORT=5001 # REST API port
export IPFS_TCP_PORT=5268 export IPFS_TCP_PORT=5268
export IPFS_WS_PORT=5269 export IPFS_WS_PORT=5269
#export ENABLE_CIRCUIT_RELAY=1 # The human-readible name that is used when displaying data about this node.
# Production database connection string.
#export DBURL=mongodb://localhost:27017/bch-service-dev
export COORD_NAME=ipfs-service-provider-generic 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" export MNEMONIC="churn aisle shield silver ladder swear hunt slim pen demand spoil veteran"
# 0 = less verbose. 3 = most verbose
export DEBUG_LEVEL=1 export DEBUG_LEVEL=1
# MongoDB connection string.
#export DBURL=mongodb://localhost:27017/bch-service-dev
npm start npm start
+31
View File
@@ -0,0 +1,31 @@
#!/bin/bash
# This script is an example for running a ipfs-service-provider as a Circuit Relay.
# Circuit Relays are help other nodes on the network communicate. They are
# critical for reliable functioning of the network, and for circumventing
# censorship.
# Ports
export PORT=5001 # REST API port
export IPFS_TCP_PORT=5268
export IPFS_WS_PORT=5269
# 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
export DEBUG_LEVEL=1
# MongoDB connection string.
#export DBURL=mongodb://localhost:27017/bch-service-dev
# Comment to disable circuit relay functionality. Or set to 1 to enable.
export ENABLE_CIRCUIT_RELAY=1
# 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.
#export CR_DOMAIN=subdomain.yourdomain.com
npm start