From 51eab3faf85dfa5eb6799b99c488fc63c58049df Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Tue, 25 Feb 2025 23:14:30 +0000 Subject: [PATCH] feat: create a vanity URL for teh committee server --- applications/skynet.ie/skynet.ie.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/applications/skynet.ie/skynet.ie.nix b/applications/skynet.ie/skynet.ie.nix index cb2e778..5082080 100644 --- a/applications/skynet.ie/skynet.ie.nix +++ b/applications/skynet.ie/skynet.ie.nix @@ -25,6 +25,7 @@ in { services.skynet.acme.domains = [ "www.skynet.ie" "discord.skynet.ie" + "*.discord.skynet.ie" "public.skynet.ie" ]; @@ -50,6 +51,11 @@ in { r_type = "CNAME"; value = config.services.skynet.host.name; } + { + record = "*.discord"; + r_type = "CNAME"; + value = config.services.skynet.host.name; + } ]; services.nginx = { @@ -78,6 +84,16 @@ in { useACMEHost = "skynet"; locations."/".return = "307 https://discord.gg/mkuKJkCuyM"; }; + "compsoc.discord.skynet.ie" = { + forceSSL = true; + useACMEHost = "skynet"; + locations."/".return = "307 https://discord.gg/mkuKJkCuyM"; + }; + "committee.discord.skynet.ie" = { + forceSSL = true; + useACMEHost = "skynet"; + locations."/".return = "307 https://discord.gg/D6mbASJKxU"; + }; "public.skynet.ie" = { forceSSL = true;