-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commits on Jul 27, 2018
-
This PR adds a new config property `preload`: ```js new IPFS({ preload: { enabled: false, addresses: [{ bootstrap: '/multiaddr/bootstrap/address/tcp/4001/ipfs/peerId', gateway: '/multiaddr/gateway/address/tcp/9090' }] } }) ``` * `preload.enabled` (default `false`) enables/disabled preloading * `preload.addresses` array of node addresses to preload content on * `preload.addresses.0.bootstrap` the swarm address of the preload node. This is added to the node's bootstrap addresses * `preload.addresses.0.gateway` the gateway address of the preload node. This is the address we make a HTTP HEAD request to, to initiate the preload After adding content with `ipfs.files.add*` or `ipfs.dag.put`, we make HTTP HEAD requests to _all_ preload gateway addresses (providing `preload.enabled` is true). License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
Configuration menu - View commit details
-
Copy full SHA for dca3749 - Browse repository at this point
Copy the full SHA dca3749View commit details -
test: add preload tests for ipfs.files.add and make fixes
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
Configuration menu - View commit details
-
Copy full SHA for f5b5854 - Browse repository at this point
Copy the full SHA f5b5854View commit details -
refactor: only create new CID if not already stringy
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
Configuration menu - View commit details
-
Copy full SHA for 332ef98 - Browse repository at this point
Copy the full SHA 332ef98View commit details -
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
Configuration menu - View commit details
-
Copy full SHA for e6d22d1 - Browse repository at this point
Copy the full SHA e6d22d1View commit details -
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
Configuration menu - View commit details
-
Copy full SHA for 2f958b9 - Browse repository at this point
Copy the full SHA 2f958b9View commit details -
refactor: switch to /api/v0/refs
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
Configuration menu - View commit details
-
Copy full SHA for 557c8da - Browse repository at this point
Copy the full SHA 557c8daView commit details -
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
Configuration menu - View commit details
-
Copy full SHA for 1cdd724 - Browse repository at this point
Copy the full SHA 1cdd724View commit details -
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
Configuration menu - View commit details
-
Copy full SHA for f62bae1 - Browse repository at this point
Copy the full SHA f62bae1View commit details -
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
Configuration menu - View commit details
-
Copy full SHA for ac9d246 - Browse repository at this point
Copy the full SHA ac9d246View commit details -
fix: start/stop fix and add preload request time logging
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
Configuration menu - View commit details
-
Copy full SHA for 89502aa - Browse repository at this point
Copy the full SHA 89502aaView commit details -
fix: bootstrap default list in tests
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
Configuration menu - View commit details
-
Copy full SHA for 7c73142 - Browse repository at this point
Copy the full SHA 7c73142View commit details -
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
Configuration menu - View commit details
-
Copy full SHA for 3aa2a1d - Browse repository at this point
Copy the full SHA 3aa2a1dView commit details -
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
Configuration menu - View commit details
-
Copy full SHA for ecf1cc3 - Browse repository at this point
Copy the full SHA ecf1cc3View commit details -
feat: preload mfs root preiodically and preload dag.put
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
Configuration menu - View commit details
-
Copy full SHA for 977a074 - Browse repository at this point
Copy the full SHA 977a074View commit details -
fix: do not monitor if stopped while starting
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
Configuration menu - View commit details
-
Copy full SHA for ef4616a - Browse repository at this point
Copy the full SHA ef4616aView commit details -
feat: async mfs-preload start and stop
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
Configuration menu - View commit details
-
Copy full SHA for 9a4b5e0 - Browse repository at this point
Copy the full SHA 9a4b5e0View commit details -
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
Configuration menu - View commit details
-
Copy full SHA for eb7e01f - Browse repository at this point
Copy the full SHA eb7e01fView commit details -
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
Configuration menu - View commit details
-
Copy full SHA for fa1c9f3 - Browse repository at this point
Copy the full SHA fa1c9f3View commit details -
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
Configuration menu - View commit details
-
Copy full SHA for 787d1dd - Browse repository at this point
Copy the full SHA 787d1ddView commit details -
test: add dag.put preload test
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
Configuration menu - View commit details
-
Copy full SHA for d49f17e - Browse repository at this point
Copy the full SHA d49f17eView commit details -
fix: ensure MFS is continually preloaded
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
Configuration menu - View commit details
-
Copy full SHA for 9df1012 - Browse repository at this point
Copy the full SHA 9df1012View commit details