about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-06-15T20·20+0300
committertazjin <tazjin@tvl.su>2023-06-15T21·34+0000
commit9bec557b33a6f2807e4b3c755187bbf0f494c409 (patch)
treef192d036f98c7c58cdbb145923dd92d0118a24a3
parent8fc29668b1a2bc82f9547cfcf50841ff4a9436fc (diff)
feat(tazjin/koptevo): provision certificate (for quassel) r/6319
With this commit, Quassel becomes operative on koptevo.

Change-Id: Ic877c5bb1525cf5288b0091cb0cd1328b5276264
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8788
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
-rw-r--r--users/tazjin/nixos/koptevo/default.nix13
1 files changed, 11 insertions, 2 deletions
diff --git a/users/tazjin/nixos/koptevo/default.nix b/users/tazjin/nixos/koptevo/default.nix
index 7bc47d973971..58f26d8ae1f9 100644
--- a/users/tazjin/nixos/koptevo/default.nix
+++ b/users/tazjin/nixos/koptevo/default.nix
@@ -11,8 +11,6 @@ in
   imports = [
     (mod "quassel.nix")
     (mod "www/base.nix")
-    # (usermod "tgsa.nix")
-    # (usermod "predlozhnik.nix")
   ];
 
   boot = {
@@ -100,6 +98,17 @@ in
     preserveGenerations = "14d";
   };
 
+  services.nginx.virtualHosts."koptevo.tazj.in" = {
+    addSSL = true;
+    enableACME = true;
+
+    extraConfig = ''
+      location = / {
+        return 302 https://at.tvl.fyi/?q=%2F%2Fusers%2Ftazjin%2Fnixos%2Fkoptevo%2Fdefault.nix;
+      }
+    '';
+  };
+
   # List packages installed in system profile. To search, run:
   # $ nix search wget
   environment.systemPackages = with pkgs; [