Skip to content

cxponxtu/IPFS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevOps is uploaded at Gitlab

IPFS (InterPlanetary File System)

IPFS Node Setup

  • To initialise node:

image

  • To bring node online:
ipfs daemon

File Upload and Retrieval

  • Files can be added to IPFS by
ipfs add <filename>
  • Example:

image

  • Uploaded file can be retrieved by CID
ipfs get <CID>

Features

  • Pinning

    • Files can be pinned by
    ipfs pin add <cid>
    • If you wish to prevent the files from being garbage collected, you need to pin them.
  • Mutable links

    • You create an IPNS name linked to your IPFS node's ID by:

    image

  • Garbage Collection

    • To delete all files except pinned files:
    ipfs repo gc

Application for File Upload and Retrieval

  • I created application using Flask and IPFS API for uploding and retrieving file.
  • I also dockerised the app with ipfs/go-ipfs iamge and hosted it on AWS E2C.
  • I don't have domain names. So I used DuckDNS for DNS services and Lets Encrypt for SSL Certificates.

File access through Public IPFS Gateway

  • Once file is uploaded, CID is generated.
  • You can view file through public link provided or through the server node itself.

Note : Public URL takes some time (nearly 30 minutes) to index file since upload.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors