Difference between revisions of "SAC:Git Service"

From OSGeo
Jump to navigation Jump to search
Line 6: Line 6:
  
 
Apache runs as user 'www-data' and thus user 'www-data' owns the files in /var/www/git/repos.
 
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.
+
[[SAC:Gogs|Gogs]] runs as user 'git' and thus user 'git' owns the files in /home/git/gogs-repositories.
  
 
= Access methods =
 
= Access methods =
  
 
Repos in '/var/www/git/repos' are served by Apache via 'https://git.osgeo.org/git/<reponame>'.
 
Repos in '/var/www/git/repos' are served by Apache via 'https://git.osgeo.org/git/<reponame>'.
Repos in '/home/git/gogs-repositories' are served by Gogs (proxied by apache) via 'https://git.osgeo.org/_gogs_/<reponame>'.
+
Repos in '/home/git/gogs-repositories' are served by [[SAC:Gogs|Gogs]] (proxied by apache) via 'https://git.osgeo.org/_gogs_/<reponame>'.
  
 
Both accesses use LDAP authentication.
 
Both accesses use LDAP authentication.
Line 17: Line 17:
 
Configuration is in /etc/apache2/sites-available/git.conf.
 
Configuration is in /etc/apache2/sites-available/git.conf.
  
= Gogs =
+
TODO: write something about gitweb
 
 
Gogs service is in /home/git/gogs. Its configuration is in the custom/ subdir, which is itself put under a git repository
 
that you can access here: https://git.osgeo.org/_gogs_/sac/gogs-config (request access via sac mailing list).
 

Revision as of 02:11, 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.

Access methods

Repos in '/var/www/git/repos' are served by Apache via 'https://git.osgeo.org/git/<reponame>'. Repos in '/home/git/gogs-repositories' are served by Gogs (proxied by apache) via 'https://git.osgeo.org/_gogs_/<reponame>'.

Both accesses use LDAP authentication. Apache responds to both URI, directly serving the /git one and proxying to Gogs the /_gogs_ one. Configuration is in /etc/apache2/sites-available/git.conf.

TODO: write something about gitweb