From a95ab089420d6edf24f22500dabf7876d329dc91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sat, 16 Feb 2019 15:31:07 +0100 Subject: Move tools websites to stable web directories --- nixops/modules/websites/tools/git/gitweb/gitweb.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'nixops/modules/websites/tools/git/gitweb') 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 -- cgit v1.2.3