This add localhost ipfs to the list of node where to push the metadata and content

pull/1/head
yann300 5 years ago committed by GitHub
parent 2262c084bb
commit aaa9bd5bba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/lib/publishOnIpfs.js

@ -5,7 +5,8 @@ const IpfsClient = require('ipfs-mini')
const ipfsNodes = [ const ipfsNodes = [
new IpfsClient({ host: 'ipfs.komputing.org', port: 443, protocol: 'https' }), new IpfsClient({ host: 'ipfs.komputing.org', port: 443, protocol: 'https' }),
new IpfsClient({ host: 'ipfs.infura.io', port: 5001, protocol: 'https' }) new IpfsClient({ host: 'ipfs.infura.io', port: 5001, protocol: 'https' }),
new IpfsClient({ host: '127.0.0.1', port: 5001, protocol: 'http' })
] ]
module.exports = (contract, fileManager, cb, ipfsVerifiedPublishCallBack) => { module.exports = (contract, fileManager, cb, ipfsVerifiedPublishCallBack) => {

Loading…
Cancel
Save