From f744273d7c6a0243bc490e45b4aa898144fd143f Mon Sep 17 00:00:00 2001 From: James Walker Date: Fri, 29 Oct 2021 20:09:10 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20aristotle:=20tweak=20IPFS=20sett?= =?UTF-8?q?ings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/ipfs/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/modules/ipfs/default.nix b/modules/ipfs/default.nix index faa8f35..b14a962 100644 --- a/modules/ipfs/default.nix +++ b/modules/ipfs/default.nix @@ -11,13 +11,18 @@ "/ip6/::/tcp/4001" "/ip4/0.0.0.0/udp/4001/quic" "/ip6/::/udp/4001/quic" - "/ip4/0.0.0.0/tcp/4002/ws" - "/ip6/::1/tcp/4002/ws" ]; extraConfig = { + Addresses = { + Announce = [ ]; + NoAnnounce = [ ]; + }; API = { HTTPHeaders = { Access-Control-Allow-Origin = [ "*" ]; }; }; - Routing = { Type = "dhtclient"; }; + Discovery = { MDNS = { Enabled = true; }; }; + Routing = { Type = "dht"; }; + Peering = { Peers = [ ]; }; Swarm = { + AddrFilters = null; ConnMgr = { Type = "basic"; LowWater = 25;