diff --git a/ipfs-service-provider.sh b/shell-scripts/ipfs-service-provider-generic.sh similarity index 55% rename from ipfs-service-provider.sh rename to shell-scripts/ipfs-service-provider-generic.sh index 993860e..75afe63 100755 --- a/ipfs-service-provider.sh +++ b/shell-scripts/ipfs-service-provider-generic.sh @@ -1,18 +1,22 @@ #!/bin/bash +# This script is an example for running a generic ipfs-service-provider instance. + # Ports export PORT=5001 # REST API port export IPFS_TCP_PORT=5268 export IPFS_WS_PORT=5269 -#export ENABLE_CIRCUIT_RELAY=1 - -# Production database connection string. -#export DBURL=mongodb://localhost:27017/bch-service-dev - +# 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 + npm start diff --git a/shell-scripts/ipfs-service-provider-relay.sh b/shell-scripts/ipfs-service-provider-relay.sh new file mode 100755 index 0000000..9d31ac9 --- /dev/null +++ b/shell-scripts/ipfs-service-provider-relay.sh @@ -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