Skip to content

Commit

Permalink
Add env var to disable peer data sync (#2902)
Browse files Browse the repository at this point in the history
* Add env var to disable peer data sync

* Review comments
  • Loading branch information
stbrody authored Aug 14, 2023
1 parent f9dafae commit ebc7721
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/cli/src/ceramic-cli-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ebc7721

Please sign in to comment.