Skip to content

Commit

Permalink
Merge pull request #638 from desci-labs/ext-cid-star
Browse files Browse the repository at this point in the history
Pub ipfs fix cert
  • Loading branch information
kadamidev authored Nov 14, 2024
2 parents 84e8750 + a806c6f commit 22511b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions desci-server/src/services/ipfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ const httpsAgent = new https.Agent({
});

// connect to a different API
export const client = create({ url: process.env.IPFS_NODE_URL, options: { agent: httpsAgent } });
export const client = create({ url: process.env.IPFS_NODE_URL });
export const readerClient = create({ url: PUBLIC_IPFS_PATH });

export const publicIpfs = create({ url: process.env.PUBLIC_IPFS_RESOLVER + '/api/v0' });
export const publicIpfs = create({ url: process.env.PUBLIC_IPFS_RESOLVER + '/api/v0', options: { agent: httpsAgent } });

// Timeouts for resolution on internal and external IPFS nodes, to prevent server hanging, in ms.
const INTERNAL_IPFS_TIMEOUT = 30000;
Expand Down

0 comments on commit 22511b7

Please sign in to comment.