summaryrefslogtreecommitdiffstats
path: root/lass/2configs/codimd.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2021-11-21 13:44:39 +0100
committertv <tv@krebsco.de>2021-11-21 13:44:39 +0100
commite250f858382a1c830a55a7243a80e1fbd2d1b15d (patch)
tree0dd30c66ddc473112f1f1fcbf0c80ad896a38204 /lass/2configs/codimd.nix
parenta752af84bedc24fdc32004a8760532b3206c0421 (diff)
parentb0f39ae34d1f248a4c1b92946a42418779f69490 (diff)
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'lass/2configs/codimd.nix')
-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;