3 ms·
> 2read will automatically "pin" your content if you have local node running. How does 2read detect the local node? My IPFS node runs on different ports. Will
by shakna 8y ago
> 2read will automatically "pin" your content if you have local node running.
How does 2read detect the local node? My IPFS node runs on different ports. Will it be detected?
Edit:
http://localhost:5001/api/v0/pin/add?arg=${hash}
That would be a no. It does assume port numbers.
Maybe have a failure condition where it then does:
ipfs://localhost/api/v0/pin/add?arg=${hash}
- meehow 8y agoYes, it's a bit oversimplified. Thank you for the suggestion. I will test it tomorrow. I hope it can be done without creating settings.
- shakna 8y agoMost people don't change the ports, I'm an outlier, don't sweat it. If you can get it working with the protocol handler (ipfs://) that'd be awesome, but I went to the effort of changing my IPFS settings, so I can go to the effort of changing a setting for your addon.
- meehow 8y agoNow it has a fallback to ipfs:// (in version 1.3). Thank for pointing it out. As I understand it will only work if you have IPFS Companion, right?
- shakna 8y agoAwesome. I think there's a couple other addons and things that will enable ipfs:// but Companion is the most common.
- meehow 8y agoUnfortunately ipfs:// didn't work, so I rolled back changes. I also don't have access to window.ipfs, so I don't know at the moment how to handle custom port.