From 8d1cdb903a6ae919409b142b8c6f2336ad634fbf Mon Sep 17 00:00:00 2001 From: tzlil Date: Sun, 26 Feb 2023 00:59:40 +0200 Subject: trying to fix syntax highlighting still, changed vhost to vultr reverse dns --- hosts/vps/git.nix | 20 +++++++++++++++++--- 1 file 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 = "/"; })} -- cgit 1.4.1