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 FastCGI 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
134 .It Pa /var/www/run/gotweb.sock
135 Default location for the
139 Directory for temporary files created by
143 Example configuration for
145 .Bd -literal -offset indent
146 types { include "/usr/share/misc/mime.types" }
148 server "example.com" {
150 root "/htdocs/gotwebd"
152 fastcgi socket "/run/gotweb.sock"
159 instances on the same HTTP server under different path prefixes, with
160 the first reached via the default
161 .Ux Ns -domain socket, the second configured to listen on localhost
163 .Bd -literal -offset indent
164 server "example.com" {
167 location "/gotwebd-unix/" {
168 fastcgi socket "/run/gotweb.sock"
170 location "/gotwebd-unix/*" {
171 root "/htdocs/gotwebd"
175 location "/gotwebd-tcp/" {
176 fastcgi socket tcp localhost 9000
178 location "/gotwebd-tcp/*" {
179 root "/htdocs/gotwebd"
186 .Xr git-repository 5 ,
191 .An Omar Polo Aq Mt op@openbsd.org
192 .An Stefan Sperling Aq Mt stsp@openbsd.org
193 .An Tracey Emery Aq Mt tracey@traceyemery.net