From 9d41477805953b489e8c6756cd6a8f5d93a3f752 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sat, 8 Nov 2025 20:06:24 +0000 Subject: [PATCH] retire btc and xmr nodes --- homepage/home.body.html | 2 +- services/caddy.nix | 7 ------- services/crypto.nix | 35 ----------------------------------- services/default.nix | 4 ++-- services/ipfs.nix | 12 ++++++++++++ 5 files changed, 15 insertions(+), 45 deletions(-) delete mode 100644 services/crypto.nix create mode 100644 services/ipfs.nix diff --git a/homepage/home.body.html b/homepage/home.body.html index 9f4d61d..5272fad 100644 --- a/homepage/home.body.html +++ b/homepage/home.body.html @@ -25,7 +25,7 @@ [clearnet]
  • Self-Serve Password Changes [tor] [clearnet]
  • -

    We also host nodes for Bitcoin (BTC), Monero (XMR), an IPFS gateway, and a TOR relay +

    We also host an IPFS node, and a TOR relay to strengthen their respective networks. They are all available over clearnet and TOR using this main webpages IP and .onion URL.

    All services have a strict no-metrics policy, with logs being kept for at most 1 hour (for debugging purposes).

    diff --git a/services/caddy.nix b/services/caddy.nix index 6e387f9..a4d52ae 100644 --- a/services/caddy.nix +++ b/services/caddy.nix @@ -1,13 +1,6 @@ { services.caddy = { enable = true; - #globalConfig = '' - # pki { - # ca local { - # name "Distrust CA" - # } - # } - #''; }; networking.firewall.allowedTCPPorts = [80 443]; diff --git a/services/crypto.nix b/services/crypto.nix deleted file mode 100644 index bbf6f95..0000000 --- a/services/crypto.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ - services = { - bitcoind."default" = { - enable = true; - prune = 100000; - }; - - monero = { - enable = true; - prune = true; - rpc.restricted = true; - }; - - kubo.enable = true; - - tor.relay.onionServices."site".map = [ - 4001 - 8080 - 8333 - 18080 - 18081 - ]; - - caddy.virtualHosts = { - "xmr.distrust.network".extraConfig = '' - reverse_proxy localhost:18081 - ''; - "ipfs.distrust.network".extraConfig = '' - reverse_proxy localhost:8080 - ''; - }; - }; - - networking.firewall.allowedTCPPorts = [4001 8333 18080]; -} diff --git a/services/default.nix b/services/default.nix index 0be227a..55b6664 100644 --- a/services/default.nix +++ b/services/default.nix @@ -1,12 +1,12 @@ { imports = [ # Core System - ./caddy.nix ./borg.nix + ./caddy.nix # Non-Stateful + ./ipfs.nix ./site.nix - ./crypto.nix ./tor.nix # Stateful diff --git a/services/ipfs.nix b/services/ipfs.nix new file mode 100644 index 0000000..aca92ed --- /dev/null +++ b/services/ipfs.nix @@ -0,0 +1,12 @@ +{ + services = { + kubo.enable = true; + + tor.relay.onionServices."site".map = [ + 4001 + 8080 + ]; + }; + + networking.firewall.allowedTCPPorts = [4001]; +}