You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
1.3 KiB

import web3Options from './web3Options';
import EthereumIdentityProvider from '../orbit/ΕthereumIdentityProvider';
import { orbitConstants } from '@ezerous/breeze'
const { web3 } = web3Options;
EthereumIdentityProvider.setWeb3(web3);
const breezeOptions = {
ipfs: {
config: {
Addresses: {
Swarm: [
// Use local signaling server (see also rendezvous script in package.json)
// For more information: https://github.com/libp2p/js-libp2p-webrtc-star
'/ip4/127.0.0.1/tcp/9090/wss/p2p-webrtc-star'
// Use the following public servers if needed
// '/dns4/wrtc-star1.par.dwebops.pub/tcp/443/wss/p2p-webrtc-star',
// '/dns4/ wrtc-star2.sjc.dwebops.pub/tcp/443/wss/p2p-webrtc-star'
]
},
},
preload: {
enabled: false
},
init: {
emptyRepo: true
}
},
orbit: {
identityProvider: EthereumIdentityProvider,
databases: [
{
name: 'topics',
type: orbitConstants.ORBIT_TYPE_KEYVALUE
},
{
name: 'posts',
type: orbitConstants.ORBIT_TYPE_KEYVALUE
}
]
}
};
export default breezeOptions;