From fbafcf32cd2627e150f17630b21be59348735823 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Tue, 6 Apr 2021 13:53:08 -0700 Subject: [PATCH] Displaying ipfs config on startup --- src/lib/ipfs.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/ipfs.js b/src/lib/ipfs.js index bf654be..cfbfd3e 100644 --- a/src/lib/ipfs.js +++ b/src/lib/ipfs.js @@ -44,9 +44,6 @@ class IPFSLib { const ipfsOptions = { repo: './ipfsdata', start: true, - // EXPERIMENTAL: { - // pubsub: true - // }, config: { relay: { enabled: true, // enable circuit relay dialer and listener @@ -69,6 +66,9 @@ class IPFSLib { // Set the 'server' profile so the node does not scan private networks. await this.ipfs.config.profiles.apply('server') + + const nodeConfig = await this.ipfs.config.getAll() + console.log(`IPFS node configuration: ${JSON.stringify(nodeConfig, null, 2)}`) } catch (err) { console.error('Error in startIpfs()') throw err