Skip to content

Instantly share code, notes, and snippets.

@connor-davis
Last active January 5, 2022 07:47
Show Gist options
  • Save connor-davis/eabac7517d6086f653870e14bfe678fc to your computer and use it in GitHub Desktop.
Save connor-davis/eabac7517d6086f653870e14bfe678fc to your computer and use it in GitHub Desktop.
const config = {
ipfs: {
preload: {
enabled: false
},
config: {
Addresses: {
Swarm: [
'/dns4/star.thedisco.zone/tcp/9090/wss/p2p-webrtc-star',
'/dns6/star.thedisco.zone/tcp/9090/wss/p2p-webrtc-star',
]
}
}
}
}
/**
* Here IPFS is any instance of ipfs we use, I usually use the ipfs-core cdn script url.
*/
export const initIPFS = async () => {
return await IPFS.create(Config.ipfs)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment