From 322f10d9ae94e82026cfd95fd3cfe6d4e480fac6 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sat, 31 Aug 2024 00:19:40 +0200 Subject: [PATCH] feat(dns): add raw S3 reverse proxies domains for channel scripts Signed-off-by: Raito Bezarius --- terraform/gandi.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/terraform/gandi.nix b/terraform/gandi.nix index 4610dcc..9dd3ceb 100644 --- a/terraform/gandi.nix +++ b/terraform/gandi.nix @@ -96,6 +96,19 @@ in (dualProxyRecords "build-coord.wob01.infra" 300 "AAAA" [ "2a01:584:11::1:11" ]) # TODO: do not hardcode, just reuse the Colmena hive module outputs to generate all the required details. - ] ++ map (index: record "builder-${toString index}.wob01.infra" 300 "AAAA" [ "2a01:584:11::1:${toString index}" ]) (genList lib.id 11)); + ] + ++ (map (index: record "builder-${toString index}.wob01.infra" 300 "AAAA" [ "2a01:584:11::1:${toString index}" ]) (genList lib.id 11)) + ++ ( + let + # FIXME: figure out a way to poke `config.services.s3-revproxy` and + # automate the DNS part away? + buckets = [ + "channels" + "releases" + "channel-scripts-test" + ]; + in + map (bucket: record "${bucket}" 300 "CNAME" [ "public01.infra.p" ]) buckets + )); }; }