2 .\" Copyright (c) 2020 Stefan Sperling
4 .\" Permission to use, copy, modify, and distribute this software for any
5 .\" purpose with or without fee is hereby granted, provided that the above
6 .\" copyright notice and this permission notice appear in all copies.
8 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21 .Nd Game of Trees Git repository server for web browsers
26 provides a web interface allowing Git repository contents to be viewed
30 is a CGI program based on
34 which is intended to run in a
38 The program has been designed to work out of the box with
41 web server in conjunction with
46 requires the following steps:
51 configuration file must be adjusted to run
57 section below contains an appropriate configuration file sample.
59 httpd(8) and slowcgi(8) must be enabled and started:
60 .Bd -literal -offset indent
61 # rcctl enable httpd slowcgi
62 # rcctl start httpd slowcgi
65 Optionally, the run-time behaviour of
67 can be configured via the
71 Git repositories must be created at a suitable location inside the
75 These repositories should
77 be writable by the user ID of the
80 The default location for repositories published by
83 .Pa /var/www/got/public .
85 Git repositories served by
87 should be kept up-to-date with a mechanism such as
96 .Bl -tag -width /var/www/got/public/ -compact
97 .It Pa /var/www/got/public/
98 Default location for Git repositories served by
100 This location can be adjusted in the
103 .It Pa /var/www/cgi-bin/gotweb/gotweb
106 CGI program, statically linked for use in a
109 .It Pa /var/www/cgi-bin/gotweb/gw_tmpl/
110 Directory for template files used by
112 .It Pa /var/www/cgi-bin/gotweb/libexec/
113 Directory containing statically linked
115 helper programs which are run by
117 to read Git repositories.
118 .It Pa /var/www/htdocs/gotweb/
119 Directory containing HTML, CSS, and image files used by
121 .It Pa /var/www/got/tmp/
122 Directory for temporary files created by
126 Example configuration for httpd.conf:
127 .Bd -literal -offset indent
129 types { include "/usr/share/misc/mime.types" }
130 server "gotweb.example.com" {
132 root "/htdocs/gotweb"
133 location "/cgi-bin/*" {
138 directory index "index.html"
145 .Xr git-repository 5 ,
150 .An Christian Weisgerber Aq Mt naddy@openbsd.org
151 .An Jerome Kasper Aq Mt neon.king.fr@gmail.com
152 .An Josh Rickmar Aq Mt jrick@zettaport.com
153 .An Omar Polo Aq Mt op@openbsd.org
154 .An Stefan Sperling Aq Mt stsp@openbsd.org
155 .An Tracey Emery Aq Mt tracey@traceyemery.net