2022-12-27 10:10:53 -05:00
|
|
|
{ pkgs, ... }:
|
2021-06-21 22:44:03 -04:00
|
|
|
|
|
|
|
{
|
2022-03-02 22:29:38 -05:00
|
|
|
environment.systemPackages = with pkgs; [ ipfs-migrator ];
|
|
|
|
|
2021-06-21 22:44:03 -04:00
|
|
|
services = {
|
2022-10-07 06:19:56 -04:00
|
|
|
kubo = {
|
2021-06-21 22:44:03 -04:00
|
|
|
enable = true;
|
2022-10-30 23:04:36 -04:00
|
|
|
settings = {
|
2021-10-29 20:09:10 -04:00
|
|
|
Addresses = {
|
|
|
|
Announce = [ ];
|
2022-10-30 23:04:36 -04:00
|
|
|
API = "/ip4/0.0.0.0/tcp/5001";
|
|
|
|
Gateway = "/ip4/0.0.0.0/tcp/8080";
|
2021-10-29 20:09:10 -04:00
|
|
|
NoAnnounce = [ ];
|
2022-10-30 23:04:36 -04:00
|
|
|
Swarm = [
|
|
|
|
"/ip4/0.0.0.0/tcp/4001"
|
|
|
|
"/ip6/::/tcp/4001"
|
|
|
|
"/ip4/0.0.0.0/udp/4001/quic"
|
|
|
|
"/ip6/::/udp/4001/quic"
|
|
|
|
];
|
2021-10-29 20:09:10 -04:00
|
|
|
};
|
2021-06-21 22:44:03 -04:00
|
|
|
API = { HTTPHeaders = { Access-Control-Allow-Origin = [ "*" ]; }; };
|
2021-10-29 20:09:10 -04:00
|
|
|
Discovery = { MDNS = { Enabled = true; }; };
|
|
|
|
Routing = { Type = "dht"; };
|
2021-06-21 22:44:03 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|