ipfs: add defaults to pin_image.js

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-01-31 10:53:08 +01:00
parent f3687c0042
commit acfd3ec3f1
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020

View File

@ -5,8 +5,8 @@ const ipfsClient = require('ipfs-http-client')
const main = async () => {
const ipfs = ipfsClient(
process.env.IPFS_HOST,
process.env.IPFS_PORT,
process.env.IPFS_HOST || 'ipfs.status.im',
process.env.IPFS_PORT || 443,
{ protocol: 'https' }
)