Difference between revisions of "SAC:Git Service"

From OSGeo
Jump to navigation Jump to search
Line 13: Line 13:
 
= Access methods =
 
= Access methods =
  
Repos in ''/var/www/git/repos'' are served by Apache via ''https://git.osgeo.org/git/<reponame>''.
+
== HTTP(S) ==
  
Repos in ''/home/git/gogs-repositories'' are served by [[SAC:Gogs|Gogs]] (proxied by apache) via ''https://git.osgeo.org/_gogs_/<reponame>''.
+
Repos in ''/var/www/git/repos'' are served via both ''https://git.osgeo.org/git/REPONAME'' ([[SAC:LDAP|LDAP]] auth required, uses git-receive-pack) and ''http://git.osgeo.org/git/REPONAME'' (world readable, uses git-http-backend).
  
Both accesses use [[SAC:LDAP|LDAP]] authentication.
+
Repos in ''/home/git/gogs-repositories'' are served via ''https://git.osgeo.org/_gogs_/REPONAME''
 
+
([[SAC:LDAP|LDAP]] auth required). At the moment there's no unauthenticated access to these repositories.
Apache responds to both URI, directly serving the /git one and proxying to [[SAC:Gogs|Gogs]] the ''/_gogs_'' one.
 
Configuration is in ''/etc/apache2/sites-available/git.conf''.
 
  
 
'''TODO''': write something about gitweb
 
'''TODO''': write something about gitweb

Revision as of 02:48, 9 April 2016

The TracsvnVM machine hosts a few git related experimental services.

Repositories

There are currently git repositories under /var/www/git/repos (served by Apache) and under /home/git/gogs-repositories (served by Gogs).

Apache runs as user www-data and thus user www-data owns the files in /var/www/git/repos.

Gogs runs as user git and thus user git owns the files in /home/git/gogs-repositories.

There are also a bunch of git repositories used for various system configurations, but they are not exposed to public services as such.

Access methods

HTTP(S)

Repos in /var/www/git/repos are served via both https://git.osgeo.org/git/REPONAME (LDAP auth required, uses git-receive-pack) and http://git.osgeo.org/git/REPONAME (world readable, uses git-http-backend).

Repos in /home/git/gogs-repositories are served via https://git.osgeo.org/_gogs_/REPONAME (LDAP auth required). At the moment there's no unauthenticated access to these repositories.

TODO: write something about gitweb