cluster/services/object-storage: add dns records
This commit is contained in:
parent
38d8894676
commit
e961260700
1 changed files with 11 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ depot, ... }:
|
||||
{ config, depot, ... }:
|
||||
|
||||
{
|
||||
services.object-storage = {
|
||||
|
@ -10,4 +10,14 @@
|
|||
address = "https://object-storage.${depot.lib.meta.domain}/minio/health/live";
|
||||
module = "https2xx";
|
||||
};
|
||||
|
||||
dns.records = let
|
||||
serverAddrs = map
|
||||
(node: depot.hours.${node}.interfaces.primary.addrPublic)
|
||||
config.services.object-storage.nodes.host;
|
||||
in {
|
||||
object-storage.target = serverAddrs;
|
||||
"console.object-storage".target = serverAddrs;
|
||||
cdn.target = serverAddrs;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue