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 FastCGI repository server for web browsers
25 .Op Fl D Ar macro Ns = Ns Ar value
29 is a FastCGI server program which can display the contents of Git
30 repositories via a web browser.
31 The program has been designed to work out of the box with
37 provides the following options:
38 .Bl -tag -width tenletters
39 .It Fl D Ar macro Ns = Ns Ar value
44 Overrides the definition of
46 in the configuration file.
49 Send log output to stderr.
51 Set the path to the configuration file.
52 If not specified, the file
56 Parse the configuration file, report errors if any, and exit.
59 Verbosity increases if this option is used multiple times.
64 requires the following steps:
69 configuration file must be adjusted to run
71 as a FastCGI helper program.
74 section below contains an appropriate configuration file sample.
76 httpd(8) must be enabled and started:
77 .Bd -literal -offset indent
82 Optionally, the run-time behaviour of
84 can be configured via the
88 Git repositories must be created at a suitable location inside the
92 These repositories should
94 be writable by the user ID shared between
98 The default location for repositories published by
101 .Pa /var/www/got/public .
103 Git repositories served by
105 should be kept up-to-date with a mechanism such as
114 .Bl -tag -width /var/www/got/public/ -compact
115 .It Pa /etc/gotwebd.conf
116 Default location of the
119 .It Pa /var/www/got/public/
120 Default location for Git repositories served by
122 This location can be adjusted in the
125 .It Pa /var/www/bin/gotwebd/
126 Directory containing statically linked
128 helper programs which are run by
130 to read Git repositories.
131 .It Pa /var/www/htdocs/gotwebd/
132 Directory containing HTML, CSS, and image files used by
135 Directory for temporary files created by
139 Example configuration for
141 .Bd -literal -offset indent
142 types { include "/usr/share/misc/mime.types" }
144 # one gotwebd reachable at http://gotweb1.example.com/
145 server "gotweb1.example.com" {
147 root "/htdocs/gotwebd"
149 fastcgi socket "/run/gotweb.sock"
153 # hosting multiple gotwebd instances on the same HTTP server:
154 # http://gotweb2.example.com/gotwebd-unix/
155 # http://gotweb2.example.com/gotwebd-tcp/
156 server "gotweb2.example.com" {
158 location "/gotwebd-unix/" {
159 fastcgi socket "/run/gotweb.sock"
161 location "/gotwebd-unix/*" {
162 root "/htdocs/gotwebd"
165 location "/gotwebd-tcp/" {
166 fastcgi socket tcp 127.0.0.1 9000
168 location "/gotwebd-tcp/*" {
169 root "/htdocs/gotwebd"
176 .Xr git-repository 5 ,
181 .An Omar Polo Aq Mt op@openbsd.org
182 .An Stefan Sperling Aq Mt stsp@openbsd.org
183 .An Tracey Emery Aq Mt tracey@traceyemery.net