modules/ipfs: set API address explicitly

This commit is contained in:
Max Headroom 2023-04-25 16:28:25 +02:00
parent d4daa81867
commit 86fae82ca8

View file

@ -27,12 +27,15 @@ in {
enableGC = true; enableGC = true;
extraFlags = [ "--enable-pubsub-experiment" "--enable-namesys-pubsub" ]; extraFlags = [ "--enable-pubsub-experiment" "--enable-namesys-pubsub" ];
settings = { settings = {
Addresses.Swarm = [ Addresses = {
Swarm = [
"/ip4/0.0.0.0/tcp/4001" "/ip4/0.0.0.0/tcp/4001"
"/ip4/0.0.0.0/tcp/110" "/ip4/0.0.0.0/tcp/110"
"/ip4/0.0.0.0/udp/4001/quic" "/ip4/0.0.0.0/udp/4001/quic"
"/ip4/0.0.0.0/udp/110/quic" "/ip4/0.0.0.0/udp/110/quic"
]; ];
API = "/ip4/127.0.0.1/5001";
};
Peering.Peers = peeringPeers; Peering.Peers = peeringPeers;
Bootstrap = (lib.flatten (map (p: map (a: "${a}/p2p/${p.ID}") p.Addrs) peeringPeers)) ++ [ Bootstrap = (lib.flatten (map (p: map (a: "${a}/p2p/${p.ID}") p.Addrs) peeringPeers)) ++ [
"/dnsaddr/bootstrap.libp2p.io/p2p/12D3KooWEZXjE41uU4EL2gpkAQeDXYok6wghN7wwNVPF5bwkaNfS" "/dnsaddr/bootstrap.libp2p.io/p2p/12D3KooWEZXjE41uU4EL2gpkAQeDXYok6wghN7wwNVPF5bwkaNfS"