From f1caef2c0df3aca12e2dd14897dc7248da767570 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Sun, 23 Feb 2025 09:41:55 -0700 Subject: [PATCH] fix(prod): Adding connection prefrence to production startup script --- package-lock.json | 8 ++++---- package.json | 2 +- production/docker/start-production.sh | 5 +++++ 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index f750613..da5caca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,7 @@ "datastore-fs": "10.0.2", "glob": "7.1.6", "helia": "5.2.1", - "helia-coord": "1.7.1", + "helia-coord": "1.7.2", "jsonrpc-lite": "2.2.0", "jsonwebtoken": "8.5.1", "jwt-bch-lib": "1.3.0", @@ -11695,9 +11695,9 @@ } }, "node_modules/helia-coord": { - "version": "1.7.1", - "resolved": "http://94.130.170.209:4873/helia-coord/-/helia-coord-1.7.1.tgz", - "integrity": "sha512-sEeVA8j9LfAdCvHR9QxTs/cqTunNGTc+cgutUtusF72j9bflLkw/buTqjkEWBaEjJxC/RS+IKXFE3apZAhYNGw==", + "version": "1.7.2", + "resolved": "http://94.130.170.209:4873/helia-coord/-/helia-coord-1.7.2.tgz", + "integrity": "sha512-2M2vK7GY1gRC9wgGTx8f0+g7hb6E/mxDfN0b5cl2KBrMMshPPNbTU7+/J51Xr7NY91zBX8IvP7d3SKz5Tt/9Aw==", "license": "MIT", "dependencies": { "@chris.troutner/retry-queue": "1.0.10", diff --git a/package.json b/package.json index 7c7f6d3..cb9dee1 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "datastore-fs": "10.0.2", "glob": "7.1.6", "helia": "5.2.1", - "helia-coord": "1.7.1", + "helia-coord": "1.7.2", "jsonrpc-lite": "2.2.0", "jsonwebtoken": "8.5.1", "jwt-bch-lib": "1.3.0", diff --git a/production/docker/start-production.sh b/production/docker/start-production.sh index 1003b5d..2073556 100755 --- a/production/docker/start-production.sh +++ b/production/docker/start-production.sh @@ -36,4 +36,9 @@ export IPFS_WS_PORT=4003 # 0 = no debug logs. 3 = maximum debug logs. export DEBUG_LEVEL=0 +# 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 + npm start