clouvider-fra01: add ipfs

This commit is contained in:
Luke Granger-Brown 2021-01-15 00:58:36 +00:00
parent d20dd06aaf
commit 44f4e9a023

View file

@ -98,6 +98,9 @@ in {
ipv6.addresses = [{ address = "2a0f:93c0:0:22::2"; prefixLength = 126; }]; ipv6.addresses = [{ address = "2a0f:93c0:0:22::2"; prefixLength = 126; }];
}; };
firewall.allowPing = true; firewall.allowPing = true;
firewall.allowedTCPPorts = [
4001 # ipfs
];
}; };
my.ip.tailscale = "100.75.142.119"; my.ip.tailscale = "100.75.142.119";
@ -174,5 +177,14 @@ in {
virtualHosts = vhosts; virtualHosts = vhosts;
}; };
services.ipfs = {
enable = true;
extraConfig = {
Discovery.MDNS.Enabled = false;
Swarm.DisableNatPortMap = true;
};
dataDir = "/store/ipfs";
};
system.stateVersion = "20.09"; system.stateVersion = "20.09";
} }