From 9f9f1ad07f05cd95a88319b9bb09d584b50817d7 Mon Sep 17 00:00:00 2001 From: Mell Date: Tue, 26 Mar 2024 19:19:21 +0200 Subject: [PATCH 1/2] Revert fix --- deployment/overlays/production/configmap.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/overlays/production/configmap.yaml b/deployment/overlays/production/configmap.yaml index 13093a01..00f87e4b 100644 --- a/deployment/overlays/production/configmap.yaml +++ b/deployment/overlays/production/configmap.yaml @@ -19,9 +19,9 @@ data: IPFS_CLUSTER_URL: http://new-ipfs-cluster:9094 IPFS_GATEWAY_URL: https://ipfs.subsocial.network IPFS_MAX_FILE_SIZE_BYTES: "2097152" - IPFS_NODE_URL: https://ipfs-gw.decloud.foundation + IPFS_NODE_URL: http://new-ipfs-cluster:5001 IPFS_READ_ONLY_NODE_URL: http://new-ipfs-cluster:8080 - IPFS_CRUST_AUTH: 'Basic c3ViLTVGQTluUURWZzI2N0RFZDhtMVp5cFhMQm52TjdTRnhZd1Y3bmRxU1lHaU45VFRwdToweDEwMmQ3ZmJhYWQwZGUwNzFjNDFmM2NjYzQzYmQ0NzIxNzFkZGFiYWM0MzEzZTc5YTY3ZWExOWM0OWFlNjgyZjY0YWUxMmRlY2YyNzhjNTEwZGY4YzZjZTZhYzdlZTEwNzY2N2YzYTBjZjM5OGUxN2VhMzAyMmRkNmEyYjc1OTBi=' + IPFS_CRUST_AUTH: '' KUSAMA_NODE_URL: wss://kusama-rpc.polkadot.io LOG_LEVEL: info MAX_RESULTS_LIMIT: "20" From 05fe57a2c0b02148cff43eb5a2d13e44a40948cd Mon Sep 17 00:00:00 2001 From: Mell Date: Tue, 26 Mar 2024 19:26:29 +0200 Subject: [PATCH 2/2] Disable pining --- deployment/overlays/production/configmap.yaml | 4 ++-- src/ipfs/index.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deployment/overlays/production/configmap.yaml b/deployment/overlays/production/configmap.yaml index 00f87e4b..13093a01 100644 --- a/deployment/overlays/production/configmap.yaml +++ b/deployment/overlays/production/configmap.yaml @@ -19,9 +19,9 @@ data: IPFS_CLUSTER_URL: http://new-ipfs-cluster:9094 IPFS_GATEWAY_URL: https://ipfs.subsocial.network IPFS_MAX_FILE_SIZE_BYTES: "2097152" - IPFS_NODE_URL: http://new-ipfs-cluster:5001 + IPFS_NODE_URL: https://ipfs-gw.decloud.foundation IPFS_READ_ONLY_NODE_URL: http://new-ipfs-cluster:8080 - IPFS_CRUST_AUTH: '' + IPFS_CRUST_AUTH: 'Basic c3ViLTVGQTluUURWZzI2N0RFZDhtMVp5cFhMQm52TjdTRnhZd1Y3bmRxU1lHaU45VFRwdToweDEwMmQ3ZmJhYWQwZGUwNzFjNDFmM2NjYzQzYmQ0NzIxNzFkZGFiYWM0MzEzZTc5YTY3ZWExOWM0OWFlNjgyZjY0YWUxMmRlY2YyNzhjNTEwZGY4YzZjZTZhYzdlZTEwNzY2N2YzYTBjZjM5OGUxN2VhMzAyMmRkNmEyYjc1OTBi=' KUSAMA_NODE_URL: wss://kusama-rpc.polkadot.io LOG_LEVEL: info MAX_RESULTS_LIMIT: "20" diff --git a/src/ipfs/index.ts b/src/ipfs/index.ts index d6dd5e66..12756b9d 100644 --- a/src/ipfs/index.ts +++ b/src/ipfs/index.ts @@ -18,12 +18,12 @@ function getIpfsApi() { ipfs, saveAndPinJson: async (content: Record) => { const cid = await ipfs.saveJson(content) - ipfs.pinContent(cid, props) + // ipfs.pinContent(cid, props) return cid }, saveAndPinFile: async (file: any) => { const cid = await ipfs.saveFile(file) - ipfs.pinContent(cid, props) + // ipfs.pinContent(cid, props) return cid }, }