From 441565e417f41aaeaddf8686fe8ab396073954a3 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 20 Dec 2024 14:09:14 +0100 Subject: fix(modules/redlib): Change subdomain to `redlib` The old `libreddit` subdomain still has redirection to avoid this being a breaking change. But keeping the old subdomain is rather weird considering their new name. --- modules/by-name/re/redlib/module.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/modules/by-name/re/redlib/module.nix b/modules/by-name/re/redlib/module.nix index 393a8b9..2b20c66 100644 --- a/modules/by-name/re/redlib/module.nix +++ b/modules/by-name/re/redlib/module.nix @@ -4,7 +4,7 @@ lib, ... }: let - domain = "libreddit.vhack.eu"; + domain = "redlib.vhack.eu"; cfg = config.vhack.redlib; in { @@ -28,8 +28,16 @@ in { virtualHosts.${domain} = { locations."/".proxyPass = "http://127.0.0.1:${toString config.services.redlib.port}"; - enableACME = lib.mkDefault true; - forceSSL = lib.mkDefault true; + enableACME = true; + forceSSL = true; + }; + + # TODO: Remove this at a certain point. <2024-12-19> + virtualHosts."libreddit.vhack.eu" = { + locations."/".return = "301 https://${domain}"; + + forceSSL = true; + enableACME = true; }; }; }; -- cgit 1.4.1