X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=nixops%2Fmodules%2Fwebsites%2Ftools%2Fgit%2Fgitweb%2Fgitweb.nix;h=2ee7a63a5b804b34684102271a7a3a7f2819a98e;hb=a95ab089420d6edf24f22500dabf7876d329dc91;hp=22c70f25acaabcb72567fd03a79894bacb9e4d47;hpb=7da3ceece7fe6c49046e97f37fc353db9b8a981c;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/nixops/modules/websites/tools/git/gitweb/gitweb.nix b/nixops/modules/websites/tools/git/gitweb/gitweb.nix index 22c70f2..2ee7a63 100644 --- a/nixops/modules/websites/tools/git/gitweb/gitweb.nix +++ b/nixops/modules/websites/tools/git/gitweb/gitweb.nix @@ -29,10 +29,12 @@ rec { $project_list_default_category = "__Others__"; $highlight_bin = "${highlight}/bin/highlight"; ''; - apache = { + apache = rec { user = "wwwrun"; group = "wwwrun"; modules = [ "cgid" ]; + webappName = "tools_gitweb"; + root = "/run/current-system/webapps/${webappName}"; vhostConf = '' SetEnv GIT_PROJECT_ROOT ${varDir}/repositories/ ScriptAliasMatch \ @@ -44,13 +46,10 @@ rec { git-(upload|receive)-pack))$" \ ${git}/libexec/git-core/git-http-backend/$1 - - Require all granted - Require all granted - + DirectoryIndex gitweb.cgi Require all granted AllowOverride None