aboutsummaryrefslogtreecommitdiff
path: root/nixops/modules/websites/tools/git/gitweb
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-02-16 15:31:07 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-02-16 16:11:15 +0100
commita95ab089420d6edf24f22500dabf7876d329dc91 (patch)
treeee769ebdc128d9ef34608462778d1b7f35ac5469 /nixops/modules/websites/tools/git/gitweb
parent7da3ceece7fe6c49046e97f37fc353db9b8a981c (diff)
downloadNix-a95ab089420d6edf24f22500dabf7876d329dc91.tar.gz
Nix-a95ab089420d6edf24f22500dabf7876d329dc91.tar.zst
Nix-a95ab089420d6edf24f22500dabf7876d329dc91.zip
Move tools websites to stable web directories
Diffstat (limited to 'nixops/modules/websites/tools/git/gitweb')
-rw-r--r--nixops/modules/websites/tools/git/gitweb/gitweb.nix9
1 files changed, 4 insertions, 5 deletions
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 {
29 $project_list_default_category = "__Others__"; 29 $project_list_default_category = "__Others__";
30 $highlight_bin = "${highlight}/bin/highlight"; 30 $highlight_bin = "${highlight}/bin/highlight";
31 ''; 31 '';
32 apache = { 32 apache = rec {
33 user = "wwwrun"; 33 user = "wwwrun";
34 group = "wwwrun"; 34 group = "wwwrun";
35 modules = [ "cgid" ]; 35 modules = [ "cgid" ];
36 webappName = "tools_gitweb";
37 root = "/run/current-system/webapps/${webappName}";
36 vhostConf = '' 38 vhostConf = ''
37 SetEnv GIT_PROJECT_ROOT ${varDir}/repositories/ 39 SetEnv GIT_PROJECT_ROOT ${varDir}/repositories/
38 ScriptAliasMatch \ 40 ScriptAliasMatch \
@@ -44,13 +46,10 @@ rec {
44 git-(upload|receive)-pack))$" \ 46 git-(upload|receive)-pack))$" \
45 ${git}/libexec/git-core/git-http-backend/$1 47 ${git}/libexec/git-core/git-http-backend/$1
46 48
47 <Directory "${gitolite}">
48 Require all granted
49 </Directory>
50 <Directory "${git}/libexec/git-core"> 49 <Directory "${git}/libexec/git-core">
51 Require all granted 50 Require all granted
52 </Directory> 51 </Directory>
53 <Directory "${webRoot}"> 52 <Directory "${root}">
54 DirectoryIndex gitweb.cgi 53 DirectoryIndex gitweb.cgi
55 Require all granted 54 Require all granted
56 AllowOverride None 55 AllowOverride None