3box
Version:
Interact with user data
36 lines (33 loc) • 1.53 kB
JavaScript
const Log = require('ipfs-log')
const IFRAME_STORE_VERSION = '0.0.3'
const RENDEZVOUS_DISABLE = !(
!process.env.RENDEZVOUS_DISABLE ||
['0', 'f', 'false', 'no', 'off'].includes(process.env.RENDEZVOUS_DISABLE.toLowerCase())
)
module.exports = {
address_server_url: process.env.ADDRESS_SERVER_URL || 'https://beta.3box.io/address-server',
pinning_node: process.env.PINNING_NODE || '/dnsaddr/ipfs.3box.io/tcp/443/wss/ipfs/QmZvxEpiVNjmNbEKyQGvFzAY1BwmGuuvdUTmcTstQPhyVC',
pinning_room: process.env.PINNING_ROOM || '3box-pinning',
iframe_store_version: process.env.IFRAME_STORE_VERSION || IFRAME_STORE_VERSION,
iframe_store_url: process.env.IFRAME_STORE_URL || `https://iframe.3box.io/${IFRAME_STORE_VERSION}/iframe.html`,
ipfs_options: {
preload: { enabled: false },
config: {
Bootstrap: [],
Addresses: {
Swarm: RENDEZVOUS_DISABLE ? [] : [
process.env.RENDEZVOUS_ADDRESS || '/dns4/p2p.3box.io/tcp/9090/wss/p2p-websocket-star/'
]
}
}
},
orbitdb_options: {
syncLocal: true,
sortFn: Log.Sorting.SortByEntryHash // this option is required now but will likely not be in the future.
},
graphql_server_url: process.env.GRAPHQL_SERVER_URL || 'https://api.3box.io/graph/',
profile_server_url: process.env.PROFILE_SERVER_URL || 'https://ipfs.3box.io',
muport_ipfs_host: process.env.MUPORT_IPFS_HOST || 'ipfs.infura.io',
muport_ipfs_port: process.env.MUPORT_IPFS_PORT || 5001,
muport_ipfs_protocol: process.env.MUPORT_IPFS_PROTOCOL || 'https'
}