cluster/services/ipfs: add consul service for gateway
This commit is contained in:
parent
70f67f6e71
commit
56d0d07d26
1 changed files with 15 additions and 0 deletions
|
@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue