From ebc772154412fe3d18b7138ec3dba0aee8edec7d Mon Sep 17 00:00:00 2001 From: Spencer T Brody Date: Mon, 14 Aug 2023 18:24:27 -0400 Subject: [PATCH] Add env var to disable peer data sync (#2902) * Add env var to disable peer data sync * Review comments --- packages/cli/src/ceramic-cli-utils.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/ceramic-cli-utils.ts b/packages/cli/src/ceramic-cli-utils.ts index ebc37a975e..c9ad3f579d 100644 --- a/packages/cli/src/ceramic-cli-utils.ts +++ b/packages/cli/src/ceramic-cli-utils.ts @@ -150,9 +150,10 @@ export class CeramicCliUtils { config.metrics.metricsExporterEnabled = process.env.CERAMIC_METRICS_EXPORTER_ENABLED == 'true' if (process.env.COLLECTOR_HOSTNAME) config.metrics.collectorHost = process.env.COLLECTOR_HOSTNAME - if (process.env.CERAMIC_NODE_PRIVATE_SEED_URL) { + if (process.env.CERAMIC_NODE_PRIVATE_SEED_URL) config.node.privateSeedUrl = process.env.CERAMIC_NODE_PRIVATE_SEED_URL - } + if (process.env.CERAMIC_DISABLE_IPFS_PEER_DATA_SYNC == 'true') + config.ipfs.disablePeerDataSync = true // Validate the config after applying all the overrides validateConfig(config)