2022-12-27 10:10:53 -05:00
|
|
|
{ pkgs, ... }:
|
2021-10-30 23:33:26 -04:00
|
|
|
|
|
|
|
let
|
|
|
|
peers = [
|
|
|
|
{
|
2024-09-15 21:28:49 -04:00
|
|
|
ID = "12D3KooWEVoGdqsakyi3bgE8ivvRzcgTjiirFNS2FbUMw6HSjZF9";
|
|
|
|
Addrs = [ "/ip4/100.103.219.26/tcp/4001" ];
|
2021-10-30 23:33:26 -04:00
|
|
|
}
|
|
|
|
{
|
2024-09-15 20:35:46 -04:00
|
|
|
ID = "12D3KooWC5ncgKeJV2G6QBdGMkT2gLbeviaDxpYR7V6NVTsma3C5";
|
|
|
|
Addrs = [ "/ip4/100.104.247.27/tcp/4001" ];
|
2021-10-30 23:33:26 -04:00
|
|
|
|
|
|
|
}
|
|
|
|
{
|
2024-09-15 20:35:46 -04:00
|
|
|
ID = "12D3KooW9xeqfnnNWafiDkLXWjC5YdUnBrG5tJDd3tnm86kqVwhA";
|
|
|
|
Addrs = [ "/ip4/100.95.77.67/tcp/4001" ];
|
2021-10-30 23:33:26 -04:00
|
|
|
|
|
|
|
}
|
|
|
|
{
|
2024-09-15 20:35:46 -04:00
|
|
|
ID = "12D3KooWLYPckqA4JACJ4vioWc4tYuPjmfLMbgviECnWqazjSgK9";
|
|
|
|
Addrs = [ "/ip4/100.117.49.15/tcp/4001" ];
|
2021-10-30 23:33:26 -04:00
|
|
|
|
|
|
|
}
|
|
|
|
];
|
2022-05-06 20:01:04 -04:00
|
|
|
in
|
|
|
|
{
|
2021-10-30 23:33:26 -04:00
|
|
|
imports = [ ./default.nix ];
|
|
|
|
|
2022-03-02 22:29:38 -05:00
|
|
|
environment.systemPackages = with pkgs; [ ipfs-migrator ];
|
|
|
|
|
2024-07-19 14:26:53 -04:00
|
|
|
environment.etc = {
|
|
|
|
"ipfs/denylists/badbits.deny".source = ./badbits.deny;
|
|
|
|
};
|
|
|
|
|
2021-10-30 23:33:26 -04:00
|
|
|
networking.firewall = {
|
|
|
|
allowedTCPPorts = [ 4001 ];
|
|
|
|
allowedUDPPorts = [ 4001 ];
|
|
|
|
};
|
|
|
|
services = {
|
2022-10-07 06:19:56 -04:00
|
|
|
kubo = {
|
2021-10-30 23:33:26 -04:00
|
|
|
enable = true;
|
2022-10-30 23:04:36 -04:00
|
|
|
settings = {
|
2024-12-07 20:46:15 -05:00
|
|
|
Discovery = {
|
|
|
|
MDNS = {
|
|
|
|
Enabled = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
Peering = {
|
|
|
|
Peers = peers;
|
|
|
|
};
|
|
|
|
Swarm = {
|
|
|
|
AddrFilters = null;
|
|
|
|
};
|
2021-10-30 23:33:26 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
nginx = {
|
2022-12-17 22:44:49 -05:00
|
|
|
# IPFS Gateway
|
2021-10-30 23:33:26 -04:00
|
|
|
virtualHosts."walkah.cloud" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
2024-12-07 20:46:15 -05:00
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://127.0.0.1:8080";
|
|
|
|
};
|
2022-12-17 22:44:49 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
# Hosted Sites
|
|
|
|
virtualHosts."walkah.net" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
2024-12-07 20:46:15 -05:00
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://127.0.0.1:8080";
|
|
|
|
};
|
2022-06-01 20:23:14 -04:00
|
|
|
serverAliases = [
|
|
|
|
"www.walkah.net"
|
|
|
|
];
|
2021-10-30 23:33:26 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|