mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-03-30 15:08:28 +00:00

* Fix error event test in Sync tests * Fix race condition * Debug timeouts * More tests fixing * Try running local webrtc-star-signalling server for tests * Fix sync tests * Skip Log references tests in the browser tests
81 lines
1.6 KiB
JavaScript
81 lines
1.6 KiB
JavaScript
const isBrowser = () => typeof window !== 'undefined'
|
|
|
|
const swarmAddress = isBrowser()
|
|
? ['/ip4/0.0.0.0/tcp/12345/ws/p2p-webrtc-star']
|
|
: ['/ip4/0.0.0.0/tcp/0']
|
|
|
|
export default {
|
|
timeout: 30000,
|
|
defaultIpfsConfig: {
|
|
preload: {
|
|
enabled: false
|
|
},
|
|
EXPERIMENTAL: {
|
|
pubsub: true
|
|
},
|
|
config: {
|
|
Addresses: {
|
|
API: '/ip4/127.0.0.1/tcp/0',
|
|
Swarm: swarmAddress,
|
|
Gateway: '/ip4/0.0.0.0/tcp/0'
|
|
},
|
|
Bootstrap: [],
|
|
Discovery: {
|
|
MDNS: {
|
|
Enabled: true,
|
|
Interval: 0
|
|
},
|
|
webRTCStar: {
|
|
Enabled: false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
daemon1: {
|
|
silent: true,
|
|
EXPERIMENTAL: {
|
|
pubsub: true
|
|
},
|
|
config: {
|
|
Addresses: {
|
|
API: '/ip4/127.0.0.1/tcp/0',
|
|
Swarm: isBrowser() ? ['/ip4/0.0.0.0/tcp/12345/ws/p2p-webrtc-star'] : ['/ip4/0.0.0.0/tcp/0'],
|
|
Gateway: '/ip4/0.0.0.0/tcp/0'
|
|
},
|
|
Bootstrap: [],
|
|
Discovery: {
|
|
MDNS: {
|
|
Enabled: true,
|
|
Interval: 0
|
|
},
|
|
webRTCStar: {
|
|
Enabled: false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
daemon2: {
|
|
silent: true,
|
|
EXPERIMENTAL: {
|
|
pubsub: true
|
|
},
|
|
config: {
|
|
Addresses: {
|
|
API: '/ip4/127.0.0.1/tcp/0',
|
|
Swarm: isBrowser() ? ['/ip4/0.0.0.0/tcp/12345/ws/p2p-webrtc-star'] : ['/ip4/0.0.0.0/tcp/0'],
|
|
Gateway: '/ip4/0.0.0.0/tcp/0'
|
|
},
|
|
Bootstrap: [],
|
|
Discovery: {
|
|
MDNS: {
|
|
Enabled: true,
|
|
Interval: 0
|
|
},
|
|
webRTCStar: {
|
|
Enabled: false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|