summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-10-31 12:35:16 +0100
committerlassulus <lassulus@lassul.us>2021-10-31 12:35:16 +0100
commit9fd58eb16278aa098422b9e28299b374f98e0a9e (patch)
tree9df42ec6ce13906158e70541ffa705da49e0bb26 /lass/2configs
parente1fdb4728c2a886435c16dd4323a26d9f4c5ab16 (diff)
l codimd: move to pad.lassul.us
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/codimd.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/lass/2configs/codimd.nix b/lass/2configs/codimd.nix
index 070781a31..271dcfca4 100644
--- a/lass/2configs/codimd.nix
+++ b/lass/2configs/codimd.nix
@@ -1,8 +1,16 @@
{ config, pkgs, lib, ... }:
with import <stockholm/lib>;
let
- domain = "codi.lassul.us";
+ domain = "pad.lassul.us";
in {
+
+ # redirect legacy domain to new one
+ services.nginx.virtualHosts."codi.lassul.us" = {
+ enableACME = true;
+ addSSL = true;
+ locations."/".return = "301 https://${domain}\$request_uri";
+ };
+
services.nginx.virtualHosts.${domain} = {
enableACME = true;
forceSSL = true;