ipfs-shipyard / ipfs-deploy

Zero-Config CLI to Deploy Static Websites to IPFS
Other
1.16k stars 123 forks source link

Support pinning to Eternum.io #13

Closed agentofuser closed 3 years ago

agentofuser commented 5 years ago

Continuing from https://news.ycombinator.com/item?id=19808377

The idea is to make it possible to write the authentication key to the website's .env, then call ipd -p eternum like with -p pinata and -p infura to pin to that as well.

Refs #12

skorokithakis commented 5 years ago

This sounds great! To pin on Eternum, all you need to do is POST the following to https://www.eternum.io/api/pin/:

{
  "hash": "QmVvSSp4kf2JztYA56NxDLorr7NnQ6SGQTkyFKpr1gGQ4N",
  "name": "IPFEssay"
}

with name being optional. You also need to set the Authorization header with the user's token (plaintext, not base64 encoded): Authorization: Token MuDNaYcSfx7YvXGKe76yHEVutEyVibe5

hacdias commented 3 years ago

Superseeded by #107