summary refs log tree commit diff stats
path: root/modules/by-name/re
diff options
context:
space:
mode:
Diffstat (limited to 'modules/by-name/re')
-rw-r--r--modules/by-name/re/redlib/module.nix14
1 files 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;
       };
     };
   };