summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--hosts/vps/git.nix20
1 files changed, 17 insertions, 3 deletions
diff --git a/hosts/vps/git.nix b/hosts/vps/git.nix
index c49bf7d..53afa3d 100644
--- a/hosts/vps/git.nix
+++ b/hosts/vps/git.nix
@@ -16,10 +16,24 @@
         "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMDyzrs9sbstv3KFK5FV8qYlSknnEy8Cn+qch4dJLmHA"
       ];
     };
+
+
+    # for syntax highlighting
+    users.groups.fcgiwrap = {};
+    users.users.fcgiwrap = {
+      isSystemUser = true;
+      group = "fcgiwrap";
+      packages = [pkgs.highlight pkgs.fcgiwrap];
+    };
+
     services = {
-      fcgiwrap.enable = true;
+      fcgiwrap = {
+        enable = true;
+        user = "fcgiwrap";
+        group = "fcgiwrap";
+      };
       caddy = {
-        virtualHosts."http://95.179.168.209".extraConfig = ''
+        virtualHosts."http://git.95.179.168.209.vultrusercontent.com".extraConfig = ''
           bind 0.0.0.0
           ${config.website.defaultHeaders}
           header -Server
@@ -53,7 +67,7 @@
             root-title = "git.example.com";
             root-desc = "Tzlil's Git Repositories";
             scan-path = "/home/git";
-            about-filter = "${pkgs.cgit}/lib/cgit/filters/about-formatting.sh";
+            about-filter = "${pkgs.cgit}/lib/cgit/filters/about-formatting.py";
             source-filter = "${pkgs.cgit}/lib/cgit/filters/syntax-highlighting.py";
             logo-link = "/";
           })}