kopia lustrzana https://gitlab.com/rysiekpl/libresilient
Update config.js: it's an example; also, gateways that actually work.
rodzic
f418905594
commit
cbdce1a751
21
config.js
21
config.js
|
@ -1,10 +1,9 @@
|
|||
/*
|
||||
* LibResilient config
|
||||
*
|
||||
* This is the config for LibResilient as deployed on the https://resilient.is/ site
|
||||
* This is an example config for LibResilient. When deploying LibResilient on your website
|
||||
* you will need to create your own config, using this one as a template.
|
||||
*
|
||||
* When deploying LibResilient on your website you will need to create your own config,
|
||||
* using this one as a template.
|
||||
*/
|
||||
|
||||
// plugins config
|
||||
|
@ -16,14 +15,18 @@ self.LibResilientConfig.plugins = {
|
|||
'alt-fetch':{
|
||||
// configuring the alternate endpoints plugin to use IPNS gateways
|
||||
//
|
||||
// NOTICE: we cannot use gateways that use hash directly in the (sub)domain:
|
||||
// NOTICE: we cannot use CIDv0 with gateways that use hash directly in the (sub)domain:
|
||||
// https://github.com/node-fetch/node-fetch/issues/260
|
||||
// we *can* use CIDv1 with such gateways, and that's suggested:
|
||||
// https://docs.ipfs.io/how-to/address-ipfs-on-web/#path-gateway
|
||||
// https://cid.ipfs.io/
|
||||
endpoints: [
|
||||
'https://ninetailed.ninja/ipns/QmYGVgGGfD5N4Xcc78CcMJ99dKcH6K6myhd4Uenv5yJwiJ/', // Russia
|
||||
'https://10.via0.com/ipns/QmYGVgGGfD5N4Xcc78CcMJ99dKcH6K6myhd4Uenv5yJwiJ/', // USA
|
||||
'https://ipfs.sloppyta.co/ipns/QmYGVgGGfD5N4Xcc78CcMJ99dKcH6K6myhd4Uenv5yJwiJ/', // UK
|
||||
'https://gateway.temporal.cloud/ipns/QmYGVgGGfD5N4Xcc78CcMJ99dKcH6K6myhd4Uenv5yJwiJ/', // Germany
|
||||
'https://ipfs.best-practice.se/ipns/QmYGVgGGfD5N4Xcc78CcMJ99dKcH6K6myhd4Uenv5yJwiJ/' // Sweden
|
||||
'https://<CIDv1>.ipns.dweb.link/', // USA
|
||||
'https://ipfs.kxv.io/ipns/<CIDv0-or-CIDv1>/', // Hong Kong
|
||||
'https://jorropo.net/ipns/<CIDv0-or-CIDv1>/', // France
|
||||
'https://gateway.pinata.cloud/ipns/<CIDv0-or-CIDv1>/', // Germany
|
||||
'https://<CIDv1>.ipns.bluelight.link/' // Singapore
|
||||
|
||||
]
|
||||
},
|
||||
'gun-ipfs': {
|
||||
|
|
Ładowanie…
Reference in New Issue