From a395f94aa3b6861da18859d9a360c860da82e7f7 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Fri, 11 Aug 2023 01:44:04 +0100 Subject: [PATCH] feat: added in a vanity discord link --- applications/skynet.ie.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/applications/skynet.ie.nix b/applications/skynet.ie.nix index d36e434..172f739 100644 --- a/applications/skynet.ie.nix +++ b/applications/skynet.ie.nix @@ -24,12 +24,14 @@ skynet_acme.domains = [ # the root one is already covered by teh certificate "2016.skynet.ie" + "discord.skynet.ie" ]; skynet_dns.records = [ # means root domain, so skynet.ie - {record="@"; r_type="A"; value=cfg.host.ip;} - {record="2016"; r_type="CNAME"; value="skynet";} + {record="@"; r_type="A"; value=cfg.host.ip;} + {record="2016"; r_type="CNAME"; value="skynet";} + {record="discord"; r_type="CNAME"; value="skynet";} ]; networking.firewall.allowedTCPPorts = [80 443]; @@ -54,6 +56,13 @@ useACMEHost = "skynet"; documentRoot = "${inputs.skynet_website_2016.defaultPackage."x86_64-linux"}"; }; + + # archive of teh site as it was ~2012 to 2016 + "discord.skynet.ie" = { + forceSSL = true; + useACMEHost = "skynet"; + globalRedirect = "https://discord.gg/mkuKJkCuyM"; + }; }; }; };