Skip to content

Can only publish to an IPFS daemon running on localhost:5001 #345

@aschmahmann

Description

@aschmahmann

We create an IPFS HTTP Client here

const ipfs = IpfsHttpClient()
which per the examples uses the default local go-ipfs port https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-client#example.

It would be great if this could use the IPFS_PATH environment variable to attempt to locate the API file which will have a multiaddr in it and then pass that multiaddr into the HTTP client.

  1. Read environment variable
  2. Read API addr from file https://github.com/ipfs/go-ipfs-http-client/blob/3af36210f80fb86aae50da582b494ceddd64c3de/api.go#L70
  3. Convert multiaddr into IPv4/IPv6 URL and pass it into the client

It may even be worth upstreaming these few lines of code into the HTTP Client as an alternative construction option (WDYT @achingbrain)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low: Not priority right nowdif/easySomeone with a little familiarity can pick upeffort/hoursEstimated to take one or several hourshelp wantedSeeking public contribution on this issuekind/enhancementA net-new feature or improvement to an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions