Add IPFS Gateway config to readme

This commit is contained in:
2019-08-26 18:00:17 +02:00
parent a2bd3f76b8
commit d08d5f9e8d
+3 -2
View File
@@ -71,10 +71,10 @@ These are the basic steps to get up and running:
#### 1. IPFS
Run a local IPFS deamon in offline mode.
Run a local IPFS deamon.
* Make sure CORS headers are configured. See [IPFS](#ipfs) for more info.
* `ipfs daemon --offline`
* `ipfs daemon`
#### 2. kredits-contracts
@@ -108,6 +108,7 @@ Install IPFS with your favorite package manager and run
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["localhost:4200"]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]'
ipfs config Addresses.Gateway /ip4/127.0.0.1/tcp/8080
## Further Reading / Useful Links