Comments (7)
@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.
@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.
@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.
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.
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:
- Change the default in the storage adapter
- 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"
}
- 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
}
- Some combination of the above
I'm guessing 3, but the discourse specs were drafted back in June.
from heroku-ipfs-ghost.
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.
Oops! This was resolved in commit caa991b
from heroku-ipfs-ghost.
Related Issues (9)
- Update for Ghost 3.x HOT 1
- Coding style guide HOT 2
- Check casper theme in directly HOT 1
- Heroku build failing HOT 2
- Dropped support for installing Ghost via npm HOT 1
- Update README to reflect changes to storage adapter
- Change app.json to use Fission's Heroku addon
- Re-enable minor update (or update documentation) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heroku-ipfs-ghost.