X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=README;h=a6045429a50f923d00617843e30e50bb242cad2b;hb=bdafb792fd13b19c198cfd97908fde9b6dc5c29d;hp=22c7c903c6126751979696720c68a1f97d2edf35;hpb=eefb116b6a88415e4a9e9a1d94f12781853df376;p=repo_shell.git diff --git a/README b/README index 22c7c90..a604542 100644 --- a/README +++ b/README @@ -181,6 +181,23 @@ examples: git clone server:my_repository.git git clone server:mirrors/tinyos/tinyos-main.git += Repository access for gitweb + +The following steps can allow gitweb to filter the available repositories +according to the authenticated user and the contents of the .gitacl file. + +- The web server must require authorization and a valid user for URI's starting + with /gitweb. Recommend using a PAM module, since repo_shell also works of + the system user credentials. +- The web server needs to pass the REMOTE_USER environment variable to + gitweb.cgi. +- The contents of the file gitweb.conf.addon must be added to the server's + gitweb.conf file, usually found in /etc. + +The contents of gitweb.conf.addon essentially define an $export_auth_hook that +uses repo_shell's test mode to validate read access for the web server +authenticated user for each repository gitweb can see. + = Repository access for other applications Local system applications, such as web based viewers, may gain read-only access