Skip to content

Commit

Permalink
fix: fix ipfs download link from cloudlfare to w3s
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Ixo committed Aug 12, 2024
1 parent db7be5d commit 19d6f2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/handlers/ipfs_handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const getIpfsDocument = async (cid: string): Promise<Ipfs> => {

let res;
try {
res = await axios.get(`https://${cid}.ipfs.cf-ipfs.com`, {
res = await axios.get(`https://${cid}.ipfs.w3s.link`, {
responseType: "arraybuffer",
});
// res = await axios.get(`https://ipfs.io/ipfs/${cid}`);
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import { postgresMigrate } from "./postgres/migrations";
SyncChain.syncChain().then(() => SyncBlocks.startSync());

const server = http.createServer(app);
server.keepAliveTimeout = 76000; // Set the keepalive timeout to 76 seconds
server.headersTimeout = 77000; // Set the headers timeout to 77 seconds
// server.keepAliveTimeout = 76000; // Set the keepalive timeout to 76 seconds
// server.headersTimeout = 77000; // Set the headers timeout to 77 seconds

server.listen(PORT, () => console.log(`Listening on ${PORT}`));
})();

0 comments on commit 19d6f2d

Please sign in to comment.