Use new IPFS gateway for GET fetches

When adding the gateway URL, the wrapper will do a normal fetch to
`https://ipfs.kosmos.org/ipfs/$hash` instead of using the generic POST
requests to the IPFS API endpoint. This enables normal browser caching
for all IPFS documents in this app.
This commit is contained in:
2019-07-02 17:20:19 +02:00
parent b4e89492b4
commit 091ebf4b6a
3 changed files with 184 additions and 70 deletions
+2 -1
View File
@@ -40,7 +40,8 @@ module.exports = function(environment) {
ipfs: {
host: 'ipfs.kosmos.org',
port: '5444',
protocol: 'https'
protocol: 'https',
gatewayUrl: 'https://ipfs.kosmos.org/ipfs'
}
};