diff options
author | tzlil <tzlils@protonmail.com> | 2023-02-26 00:59:40 +0200 |
---|---|---|
committer | tzlil <tzlils@protonmail.com> | 2023-02-26 00:59:40 +0200 |
commit | 8d1cdb903a6ae919409b142b8c6f2336ad634fbf (patch) | |
tree | 64f90dda4ba7d188f2e432ed11063eb6aa1cb361 | |
parent | 00a2568d35d82aeab6c752be7dd9e5bf61e108bf (diff) |
trying to fix syntax highlighting still, changed vhost to vultr reverse dns
-rw-r--r-- | hosts/vps/git.nix | 20 |
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 = "/"; })} |