diff --git a/dns/dnsconfig.js b/dns/dnsconfig.js index e42b6cf..68198d4 100644 --- a/dns/dnsconfig.js +++ b/dns/dnsconfig.js @@ -44,9 +44,6 @@ D("radicle.xyz", REG_NONE, DnsProvider(DSP_CLOUDFLARE), PTR("_services._dns-sd._udp", "_radicle-node._tcp.radicle.xyz."), - A("files", "65.109.236.201"), - - A("iris", "95.217.156.6"), AAAA("iris", "2a01:4f9:c010:dfaa::1"), SSHFP("iris", 4, 1, "1ffe43af8f30c34373515fa24f1b9fe69532a9d5"), @@ -80,6 +77,7 @@ D("radicle.xyz", REG_NONE, DnsProvider(DSP_CLOUDFLARE), SSHFP("seed", 4, 1, "9033b89019264dbad5a744057166a5e1b7af92f7"), ALIAS("attic", "seed"), + ALIAS("files", "seed"), ALIAS("grafana", "seed"), ALIAS("logs", "seed"), ALIAS("loki", "seed"), diff --git a/os/host/seed/default.nix b/os/host/seed/default.nix index 4657d9a..4fc446d 100644 --- a/os/host/seed/default.nix +++ b/os/host/seed/default.nix @@ -21,6 +21,7 @@ ./radicle.nix ./grafana.nix ./victorialogs.nix + ./files.nix (modulesPath + "/profiles/qemu-guest.nix") ]; diff --git a/os/host/seed/files.nix b/os/host/seed/files.nix new file mode 100644 index 0000000..250b80d --- /dev/null +++ b/os/host/seed/files.nix @@ -0,0 +1,14 @@ +let + name = "files.radicle.xyz"; +in { + services.nginx.virtualHosts.${name} = { + root = "/var/www/${name}"; + extraConfig = '' + add_header 'Access-Control-Allow-Origin' 'https://radicle.xyz'; + autoindex on; + ''; + addSSL = true; + enableACME = true; + serverName = name; + }; +}