about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <patryk@niedzwiedzinski.cyou>2024-02-02 16:37:54 +0100
committerPatryk Niedźwiedziński <patryk@niedzwiedzinski.cyou>2024-02-02 16:37:54 +0100
commit84adc681875042f0d22686e29dbd4359be5fde29 (patch)
tree1ccc8b963ff020b5ddb893c6fcb63f30fe2d287b /machines
parent11ff8bf741b10ebe38f7c1107912d747c619a2c4 (diff)
downloaddots-84adc681875042f0d22686e29dbd4359be5fde29.tar.gz
dots-84adc681875042f0d22686e29dbd4359be5fde29.zip
Force ssl on cgit
Diffstat (limited to 'machines')
-rw-r--r--machines/srv3/cgit.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/machines/srv3/cgit.nix b/machines/srv3/cgit.nix
index 2e8ced3..989e289 100644
--- a/machines/srv3/cgit.nix
+++ b/machines/srv3/cgit.nix
@@ -47,9 +47,13 @@ in
       Unit = "git-fetch.service";
     };
   };
-  services.nginx.virtualHosts."${cgitHostname}".locations."=/mylogo.png" = {
-     alias = "${./baby-yoda.png.comp}";
-   };
+  services.nginx.virtualHosts."${cgitHostname}" = {
+    locations."=/mylogo.png" = {
+      alias = "${./baby-yoda.png.comp}";
+    };
+    forceSSL = true;
+    enableACME = true;
+  };
   services.cgit.gitN = {
     enable = true;
     package = pkgs.cgit-pink;