diff --git a/config/bootstrap_peers.go b/config/bootstrap_peers.go index 55d0f3b822fe..27715843da0c 100644 --- a/config/bootstrap_peers.go +++ b/config/bootstrap_peers.go @@ -19,7 +19,7 @@ var DefaultBootstrapAddresses = []string{ "/dnsaddr/bootstrap.libp2p.io/p2p/QmQCU2EcMqAqQPR2i9bChDtGNJchTbq5TbXJJ16u19uLTa", "/dnsaddr/bootstrap.libp2p.io/p2p/QmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb", "/dnsaddr/bootstrap.libp2p.io/p2p/QmcZf59bWwK5XFi76CZX8cbJ4BhTzzA3gU1ZjYZcYW3dwt", - "/ip4/104.131.131.82/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ", // mars.i.ipfs.io + "/ip4/104.131.131.82/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ", // mars.i.ipfs.io "/ip4/104.131.131.82/udp/4001/quic/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ", // mars.i.ipfs.io } diff --git a/config/config.go b/config/config.go index 5f6be8e5ac5c..7d44316abd33 100644 --- a/config/config.go +++ b/config/config.go @@ -33,6 +33,7 @@ type Config struct { Reprovider Reprovider Experimental Experiments Plugins Plugins + Pinning Pinning } const ( diff --git a/config/remotepin.go b/config/remotepin.go new file mode 100644 index 000000000000..9da2af1bf0b4 --- /dev/null +++ b/config/remotepin.go @@ -0,0 +1,20 @@ +package config + +const ( + PinningTag = "Pinning" + RemoteServicesTag = "RemoteServices" + RemoteServicesSelector = PinningTag + "." + RemoteServicesTag +) + +type Pinning struct { + RemoteServices map[string]RemotePinningService +} + +type RemotePinningService struct { + Api RemotePinningServiceApi +} + +type RemotePinningServiceApi struct { + Endpoint string + Key string +}