From 44adc7d5a11c53fb86e5b7c159112ff0d3550344 Mon Sep 17 00:00:00 2001 From: Didi Date: Wed, 25 Jan 2023 20:43:02 +0100 Subject: [PATCH] Change default IPFS gateway to https://cloudflare-ipfs.com/ipfs/ (#158) * ipfs.io often times out, thus switching to another default gateway * bumped version --- .env-example | 2 +- package.json | 2 +- src/config/configuration.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env-example b/.env-example index 97f714e1..d1b22d3f 100644 --- a/.env-example +++ b/.env-example @@ -25,7 +25,7 @@ HTTP_RPC_NODE= ## You can set the gateway URL of your own IPFS node in order to have data integrity verified ## (see https://docs.ipfs.io/concepts/content-addressing/) or use a public gateway you trust. ## If you have an IPFS node running locally, you may want to set this URL: http://localhost:8080/ipfs/ -#IPFS_GATEWAY="https://ipfs.io/ipfs/" +#IPFS_GATEWAY="https://cloudflare-ipfs.com/ipfs/" ## When syncing, the sentinel makes range queries to the RPC node in order to get all relevant log events. ## A larger value here results in fewer queries, but RPC nodes have varying max limits set. If this value exceeds that, queries will fail. diff --git a/package.json b/package.json index 2fe1bcb2..64992642 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "superfluid-sentinel", - "version": "0.9.9", + "version": "0.9.10", "description": "Superfluid Sentinel", "main": "main.js", "scripts": { diff --git a/src/config/configuration.js b/src/config/configuration.js index e64ac111..49448ebe 100644 --- a/src/config/configuration.js +++ b/src/config/configuration.js @@ -39,7 +39,7 @@ class Config { this.ONLY_LISTED_TOKENS = config.only_listed_tokens === "true"; this.TOGA_CONTRACT = config.toga_contract; this.FASTSYNC = config.fastsync !== "false"; - this.IPFS_GATEWAY = process.env.IPFS_GATEWAY || "https://ipfs.io/ipfs/" + this.IPFS_GATEWAY = process.env.IPFS_GATEWAY || "https://cloudflare-ipfs.com/ipfs/" this.PIRATE = config.pirate === "true"; } else { this.HTTP_RPC_NODE = process.env.HTTP_RPC_NODE; @@ -63,7 +63,7 @@ class Config { this.METRICS = process.env.METRICS !== "false"; // default: true this.METRICS_PORT = process.env.METRICS_PORT || 3000; this.FASTSYNC = process.env.FASTSYNC !== "false"; // default: true - this.IPFS_GATEWAY = process.env.IPFS_GATEWAY || "https://ipfs.io/ipfs/"; + this.IPFS_GATEWAY = process.env.IPFS_GATEWAY || "https://cloudflare-ipfs.com/ipfs/"; this.PIRATE = process.env.PIRATE === "true"; // default: false // extra options: undoc and excluded from cmdline parser. Use .env file to change the defaults.