athens/modules/ipfs/default.nix

23 lines
520 B
Nix
Raw Normal View History

2021-06-21 22:44:03 -04:00
{ 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 = [ "*" ]; }; };
};
};
};
}