Skip to content

Commit

Permalink
Change default IPFS gateway to https://cloudflare-ipfs.com/ipfs/ (#158)
Browse files Browse the repository at this point in the history
* ipfs.io often times out, thus switching to another default gateway

* bumped version
  • Loading branch information
d10r committed Jan 25, 2023
1 parent c9e35c2 commit 44adc7d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env-example
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "superfluid-sentinel",
"version": "0.9.9",
"version": "0.9.10",
"description": "Superfluid Sentinel",
"main": "main.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/config/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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.
Expand Down

0 comments on commit 44adc7d

Please sign in to comment.