Code Monkey home page Code Monkey logo

Comments (7)

bmann avatar bmann commented on July 29, 2024

@MCTaylor17 so, the default gateway URL should be https://ipfs.runfission.com. It's also part of the reason for the images downloading automatically when visiting the URL.

The https://runfission.com is actually our Web API, not our gateway. It CAN serve up individual hashes for files, but doesn't do anything for directories.

from heroku-ipfs-ghost.

bmann avatar bmann commented on July 29, 2024

@MCTaylor17 I merged your PR, but please do the following:

  • Make ipfs.runfission.com the default
  • Ask for the env variable without /ipfs -- should be just top level path -- e.g. gateway.ipfs.io or ipfs.runfission.com

from heroku-ipfs-ghost.

MCTaylor17 avatar MCTaylor17 commented on July 29, 2024

@bmann I checked a list of gateways (the "normal" list is currently 404) and only 1 out 29 didn't use /ipfs. That makes it almost standard spec (if it isn't already).

With that said, I can check/append /ipfs either here or in the adapter itself. I'm already doing some minor URL normalization over there so I'm inclined to do it there.

Do you have any thoughts on that?

from heroku-ipfs-ghost.

bmann avatar bmann commented on July 29, 2024

Yes, they all use /ipfs -- but that's the server path, not the host, and yes, /ipfs should be appended in the storage adapter.

from heroku-ipfs-ghost.

MCTaylor17 avatar MCTaylor17 commented on July 29, 2024

Just to make sure I'm making the right changes, the storage adapter currently uses ipfs.io as the default based on a requirement pulled out of the original discourse description. I can:

  1. Change the default in the storage adapter
  2. Change the default in the config file
    if(!!process.env.IPFS_GATEWAY_URL) {
      storageOptions.gatewayURL = process.env.IPFS_GATEWAY_URL;
    } else {
      storageOptions.gatewayURL = "https://ipfs.runfission.com"
    }
  1. Change the default in app.json
    "IPFS_GATEWAY_URL": {
      "description": "The HTTPS URL of your prefered IPFS gateway.  Defaults to https://ipfs.io/ipfs",
      "value": "https://ipfs.runfission.com",
      "required": false
    }
  1. Some combination of the above

I'm guessing 3, but the discourse specs were drafted back in June.

from heroku-ipfs-ghost.

bmann avatar bmann commented on July 29, 2024

Yes, fine to edit in just app.json for now.

The storage adapter wonโ€™t work with anything other than our API so someone will have to add support for other APIs or run their own copy of our Web API.

from heroku-ipfs-ghost.

MCTaylor17 avatar MCTaylor17 commented on July 29, 2024

Oops! This was resolved in commit caa991b

from heroku-ipfs-ghost.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.