JS-IPFS limit bandwidth per peer

Yes, I’m using the ‘low power’ profile. In this thread @hsn10 indicated that js-ipfs does not have DHT implemented yet.

For reference, here is the IPFS config settings for the node at chat.fullstack.cash (the app in the YouTube video). And here is the code that sets it.

IPFS node configuration: {
  "Addresses": {
    "Swarm": [],
    "Announce": [],
    "API": "",
    "Gateway": "",
    "RPC": "",
    "Delegates": [
      "/dns4/node0.delegate.ipfs.io/tcp/443/https",
      "/dns4/node1.delegate.ipfs.io/tcp/443/https",
      "/dns4/node2.delegate.ipfs.io/tcp/443/https",
      "/dns4/node3.delegate.ipfs.io/tcp/443/https"
    ]
  },
  "Discovery": {
    "MDNS": {
      "Enabled": false,
      "Interval": 10
    },
    "webRTCStar": {
      "Enabled": true
    }
  },
  "Bootstrap": [
    "/dnsaddr/bootstrap.libp2p.io/p2p/QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJN",
    "/dnsaddr/bootstrap.libp2p.io/p2p/QmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb",
    "/dnsaddr/bootstrap.libp2p.io/p2p/QmZa1sAxajnQjVM8WjWXoMbmPd7NsWhfKsPkErzpm9wGkp",
    "/dnsaddr/bootstrap.libp2p.io/p2p/QmQCU2EcMqAqQPR2i9bChDtGNJchTbq5TbXJJ16u19uLTa",
    "/dnsaddr/bootstrap.libp2p.io/p2p/QmcZf59bWwK5XFi76CZX8cbJ4BhTzzA3gU1ZjYZcYW3dwt",
    "/dns4/node0.preload.ipfs.io/tcp/443/wss/p2p/QmZMxNdpMkewiVZLMRxaNxUeZpDUb34pWjZ1kZvsd16Zic",
    "/dns4/node1.preload.ipfs.io/tcp/443/wss/p2p/Qmbut9Ywz9YEDrz8ySBSgWyJk41Uvm2QJPhwDJzJyGFsD6",
    "/dns4/node2.preload.ipfs.io/tcp/443/wss/p2p/QmV7gnbW5VTcJ3oyM2Xk1rdFBJ3kTkvxc87UFGsun29STS",
    "/dns4/node3.preload.ipfs.io/tcp/443/wss/p2p/QmY7JB6MQXhxHvq7dBDh4HpbH29v4yE9JRadAVpndvzySN"
  ],
  "Pubsub": {
    "Enabled": true
  },
  "Swarm": {
    "ConnMgr": {
      "LowWater": 20,
      "HighWater": 40
    },
    "DisableNatPortMap": true
  },
  "Routing": {
    "Type": "none"
  },
  "Identity": {
    "PeerID": "QmXQaP57JMXHe3SQC2JDmsxN3kQ1aHeManRhR4ue4zHArJ",
    "PrivKey": "CAASqAkwggSkAgEAAoIBAQDc1jqvgnfs0Pb0gYd3fYhgZbFgJYZOfW8jHeazJwMGj2y5b+fgtygAOGtd51mRlMl30ihpvgiZd4lcnmUEJeKD1Aasrg4F0ZGeS+Fu14IJUMCsBBf0yHsAyIFdL0imqSEKbsL1lg0vqCSMNI8lT3LMjXQG+96YwdZv8TLnZQr/seileE68aJ5RS3e+Ke5IYuAuNTUCouvBsSShddqQVjj87N2PWeSTckCaweMS/e6Gm81vsxDqicB8+E8STUxw1DnoHdD6I7ljT9sIFS9crLM/ZoM2cOtGXCY2FjWSSt/zLH4d11JWrxyagX+hoTf5Xnycp5GKfvjyjx2ewZQDl//xAgMBAAECggEAAvKxrRzf4reN6mjtwOa6OrY00lih5LuYL5bzONZHHC/vNsEDjoyHYkxeg44GdDLxJxI1Q6cbqIfP276KEO58CgA7OBQpQALij6NJ7r+9/seXENzLoJMKEFI85txuGvp0RFZC8EIY6jdTiJMdi5UWTlx/jWXQnIeu6AbnY+8lgNEN9WwR5Of8KikWceqrQ+fChLunUz/Ug6SG2pf3q6lGuftfc9GfHqOT2OQOQDOi+gjHeYPF1R63l7db4gCikGlwvfpEYXP3fVkgHVxvsZMfq7TlasUcHW0TLTqRF9YbDLsBDnEvsOTBdIMPO6YGG5tYkH63IDZKshgxsRLZ3d1WGQKBgQDyhwN5l293y6ql9uOL6MmrRIR58/4VpeQgJYarEYvId3s3ffaMqPkx2vXLPkHaeraaJjdZfah7Q+aOqew4l+0n3BDGclSJ4lopKi8tCP3XA8ZDyYwjO07jwWh2rkrEylpDz/VoUDVJUK4ioBD9T6TUEJqlIiGyryocg9HqvB7FyQKBgQDpGsD3PalIbCuPdrMlhlNndsCymY2bMQo2FVo9wlOr4f2Je2byKBVai5gc4FzHzqoNowYOuoSF35SYB/U65b1dWIewAxSpUlPRQOWEf/6GjAB7N1ZsFDarvodkbadCFqB5AyiT7+MZxDTziARlDb1EFLqN13jFQQyf4RiSSFQc6QKBgQCgZz2cINVfhPuTkuvCcC9ZsBJyWjaVeMedn1QnNo6eArAi7pOvSl6uY6QnTUDe0ESPRXFcJejVxf3qI2aRs6Htt/X8WkehfmylRzo2bfj9SYjK8rVV4/b0WcnOnM3kw/TZXuRvnoTvvYW+buFtuExK2cR+LUneVU3j2CdxOgScSQKBgQCaABvV+7235AbPTAtE0j6Nzy21kK62BasKWgb5YEXo+2+GAancd9DLtgezpCKHuqgsRDS/TEg7LZ+85R0FYTw+zDswdIiU6JgJWceIRws/loTG4qNM2fnYcxJ9rdffWJWB/S00tzohDrgw3/6PSIluzgcFqIHYR4ZwpcSW+APh6QKBgAeqk7LcK5TqDK3PhNflBrFHxnyA9scJWk06UCrJc/2t3oVB/khg5MzEyeXDO47JoebKibankEYhP4qiKMwVRc/DsM8bv+uCOrTJP719c9AO/Z+Wrh8LKXAaivW5lmbEWAtgTZALjiXsst33PMYzmzeporDG7CAw4rnKGhHeW4fP"
  },
  "datastore": {
    "Spec": {
      "type": "mount",
      "mounts": [
        {
          "mountpoint": "/blocks",
          "type": "measure",
          "prefix": "flatfs.datastore",
          "child": {
            "type": "flatfs",
            "path": "blocks",
            "sync": true,
            "shardFunc": "/repo/flatfs/shard/v1/next-to-last/2"
          }
        },
        {
          "mountpoint": "/",
          "type": "measure",
          "prefix": "leveldb.datastore",
          "child": {
            "type": "levelds",
            "path": "datastore",
            "compression": "none"
          }
        }
      ]
    }
  },
  "Keychain": {
    "dek": {
      "keyLength": 64,
      "iterationCount": 10000,
      "salt": "jQsI5EhejR5u197UIYvx1Wpj",
      "hash": "sha2-512"
    }
  }
}