Attempting to set up gitweb

This commit is contained in:
Trevor Vallender 2023-09-27 15:38:38 +01:00
parent 8f228ed357
commit 74a3b26906
4 changed files with 14 additions and 15 deletions

View File

@ -7,7 +7,7 @@
../shared/shared-configuration.nix ../shared/shared-configuration.nix
./kernighan-hardware.nix ./kernighan-hardware.nix
../shared/services/syncthing.nix ../shared/services/syncthing.nix
../shared/services/git.nix ../shared/services/gitweb.nix
../shared/services/nginx.nix ../shared/services/nginx.nix
]; ];

View File

@ -1,11 +0,0 @@
{ config, pkgs, inputs, ... }:
{
services.gitDaemon = {
enable = true;
basePath = "/home/git/repositories/";
exportAll = true;
# port = 9418; # default
};
}

View File

@ -0,0 +1,8 @@
{ config, pkgs, inputs, ... }:
{
services.gitweb = {
projectroot = "/home/tsv/git";
};
}

View File

@ -4,6 +4,11 @@
services.nginx = { services.nginx = {
enable = true; enable = true;
gitweb = {
enable = true;
virtualHost = "git.tsvallender.co.uk";
location = "/home/tsv/git";
};
recommendedGzipSettings = true; recommendedGzipSettings = true;
recommendedOptimisation = true; recommendedOptimisation = true;
recommendedProxySettings = true; recommendedProxySettings = true;
@ -19,9 +24,6 @@
virtualHosts."git.tsvallender.co.uk" = { virtualHosts."git.tsvallender.co.uk" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8384";
};
}; };
}; };
security.acme = { security.acme = {