diff options
author | lassulus <lassulus@lassul.us> | 2021-10-31 12:35:16 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2021-10-31 12:35:16 +0100 |
commit | 9fd58eb16278aa098422b9e28299b374f98e0a9e (patch) | |
tree | 9df42ec6ce13906158e70541ffa705da49e0bb26 /lass/2configs/codimd.nix | |
parent | e1fdb4728c2a886435c16dd4323a26d9f4c5ab16 (diff) |
l codimd: move to pad.lassul.us
Diffstat (limited to 'lass/2configs/codimd.nix')
-rw-r--r-- | lass/2configs/codimd.nix | 10 |
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; |