🧊 aristotle: ipfs nodes
This commit is contained in:
22
modules/ipfs/default.nix
Normal file
22
modules/ipfs/default.nix
Normal file
@ -0,0 +1,22 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
services = {
|
||||
ipfs = {
|
||||
enable = true;
|
||||
apiAddress = "/ip4/0.0.0.0/tcp/5001";
|
||||
gatewayAddress = "/ip4/0.0.0.0/tcp/8080";
|
||||
swarmAddress = [
|
||||
"/ip4/0.0.0.0/tcp/4001"
|
||||
"/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 = {
|
||||
API = { HTTPHeaders = { Access-Control-Allow-Origin = [ "*" ]; }; };
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user