cluster/services/ipfs: add consul service for gateway

This commit is contained in:
Max Headroom 2023-06-02 22:53:54 +02:00
parent 70f67f6e71
commit 56d0d07d26

View file

@ -56,4 +56,19 @@ in
};
};
};
consul.services.ipfs-gateway = {
mode = "external";
unit = "ipfs";
definition = {
name = "ipfs-gateway";
address = gw.ipv4;
inherit (gw) port;
checks = lib.singleton {
interval = "60s";
http = "${gw.url}/ipfs/QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn/"; # empty directory
method = "HEAD";
};
};
};
}