From 5150894720b35474103e3d26faf18414009cb5b9 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 4 Dec 2023 00:01:33 +0100 Subject: [PATCH] cluster/services/ipfs: more dns records --- cluster/services/ipfs/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cluster/services/ipfs/default.nix b/cluster/services/ipfs/default.nix index 71d2f2f..77e48cc 100644 --- a/cluster/services/ipfs/default.nix +++ b/cluster/services/ipfs/default.nix @@ -52,11 +52,15 @@ dns.records = { p2p.consulService = "ipfs-gateway"; - "\\.ipfs" = { + pin.consulService = "ipfs-gateway"; + "ipfs.admin".target = map + (node: depot.hours.${node}.interfaces.primary.addrPublic) + config.services.ipfs.nodes.remote-api; + "^[^_].+\\.ipfs" = { consulService = "ipfs-gateway"; rewrite.type = "regex"; }; - "\\.ipns" = { + "^[^_].+\\.ipns" = { consulService = "ipfs-gateway"; rewrite.type = "regex"; };