28 May 2021 |
AwesomeSheep48 | Couldn't you just use Let's Encrypt for the certificate? | 17:25:44 |
herrkpunkt.crypto | Hey everyone,
let's consider the following: I have generated a key to publish an IPNS name with in js-ipfs. Is there a way to derive the IPNS name, without using the key in publish()? I can't find a method that does this..
Thanks in advance! | 17:28:43 |
Discordian | I haven't played much with IPNS in js-ipfs, I know in go-ipfs you can just do ipfs key list -l 🤔 | 17:37:55 |
Discordian | herrkpunkt.crypto: what about ipfs.key.list(); ? https://github.com/ipfs/js-ipfs/blob/master/docs/core-api/KEY.md#ipfskeylistoptions | 17:38:52 |
herrkpunkt.crypto | Discordian: Hey, thanks! I believe ipfs key list just prints out the "names" of the keys. You can give them names during creation. What I need is the resulting IPNS hash. | 17:40:40 |
Discordian | You need the -l | 17:40:50 |
Fayne Aldan | In reply to @_slack_filecoinproject_US7UEQUAU:ipfs.io Buy a HTTPS certificate and install ncgix? What is ncgix? | 17:41:20 |
Discordian | In reply to @kuhlmann.markus:matrix.kusys.de Discordian: Hey, thanks! I believe ipfs key list just prints out the "names" of the keys. You can give them names during creation. What I need is the resulting IPNS hash. For the js-ipfs function, it says it also gives the derived CID, but I didn't try it out. | 17:41:33 |
Discordian | Or derived IPNS hash (more clear) | 17:42:06 |
Discordian | Yeah I just tried it out, seems to work well | 17:42:54 |
herrkpunkt.crypto | Ah, OK. I didn't try that one yet, since I falsely believed it just lists the names.🤪 Thanks so much 👍 | 17:43:04 |
Discordian | Haha no problem! 👍️ | 17:43:28 |
AwesomeSheep48 | In reply to @faynealdan:matrix.org What is ncgix? nginx, it is server software | 17:46:45 |
Fayne Aldan | Okay, but where do I actually get the IPFS gateway from? | 17:48:34 |
KB1RD | In reply to @faynealdan:matrix.org Okay, but where do I actually get the IPFS gateway from? You can spin up a VPS for like $5/mo with NGINX and LetsEncrypt and run the IPfS gateway | 17:48:54 |
Discordian | In reply to @faynealdan:matrix.org Okay, but where do I actually get the IPFS gateway from? Your node hosts a local gateway by default, you can reverse proxy it. | 17:49:03 |
Fayne Aldan | ohhh | 17:49:13 |
Fayne Aldan | yeah I know nothing about IPFS lol | 17:49:28 |
Fayne Aldan | That’s kinda cool ngl | 17:49:38 |
Discordian | Haha it's cool, gotta start somewhere | 17:49:42 |
Discordian | In reply to @faynealdan:matrix.org That’s kinda cool ngl Yes! If you use ipfs-companion, you can set it up to automatically redirect IPFS related things to your local node in your browser. | 17:50:10 |
Discordian | I use it every day, one of my favourite features. | 17:50:17 |
KB1RD | https://docs.ipfs.io/concepts/ipfs-gateway/#gateway-types | 17:50:24 |
Fayne Aldan | Yeah I figured that out. I just didn’t realize the local gateway was good for production / public use-cases. | 17:50:43 |
Discordian | Oh yeah of course, a gateway is just a node you can access. As that link will point out, public gateways don't usually have write access, so you just restrict that, and local gateways can. | 17:51:48 |
Fayne Aldan | Altho I wish the companion would automatically pull the port of your local gateway. I’ve had my IPFS Desktop be unable to bind the port, so it picked a different port and broke companion. | 17:52:15 |
Discordian | Yeah, not sure how it'd detect it, but it'd definitely be nicer to have a better solution eventually | 17:52:41 |
Fayne Aldan | Isn’t there an API? | 17:52:49 |
Discordian | I've had Brave explode in many creative ways interacting with IPFS things | 17:52:54 |
Fayne Aldan | * Isn’t there an API on a different port? | 17:52:58 |