summary refs log tree commit diff
path: root/services/cgit.nix
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-12-26 17:24:04 +0100
committerMel <einebeere@gmail.com>2024-12-26 17:31:29 +0100
commitce64e6e1990b62451acb3822b7ab914e16b122b6 (patch)
tree3793d855dc49b849e82c919a36d4c376bf00f36f /services/cgit.nix
parent98cdef36e124b0b5ae90021a92408bb7899660c2 (diff)
downloadnetwork-ce64e6e1990b62451acb3822b7ab914e16b122b6.tar.zst
network-ce64e6e1990b62451acb3822b7ab914e16b122b6.zip
Pull out web configuration from specific machine modules
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'services/cgit.nix')
-rw-r--r--services/cgit.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/services/cgit.nix b/services/cgit.nix
index f8c2930..116a3de 100644
--- a/services/cgit.nix
+++ b/services/cgit.nix
@@ -51,4 +51,21 @@ in
       "-f" "/etc/lighttpd/cgit.conf"
     ];
   };
+
+  services.nginx.virtualHosts."git.rnrd.eu" = {
+    enableACME = true;
+    forceSSL = true;
+    locations = {
+      "/" = {
+        proxyPass = "http://127.0.0.1:3792";
+      };
+
+      "/static/" = {
+        alias = "/srv/cgit/static/";
+      };
+    };
+    extraConfig = ''
+      access_log /var/log/nginx/git.access.log json_combined;
+    '';
+  };
 }