Blame


1 a596b957 2022-07-14 tracey .\"
2 a596b957 2022-07-14 tracey .\" Copyright (c) 2020 Stefan Sperling
3 a596b957 2022-07-14 tracey .\"
4 a596b957 2022-07-14 tracey .\" Permission to use, copy, modify, and distribute this software for any
5 a596b957 2022-07-14 tracey .\" purpose with or without fee is hereby granted, provided that the above
6 a596b957 2022-07-14 tracey .\" copyright notice and this permission notice appear in all copies.
7 a596b957 2022-07-14 tracey .\"
8 a596b957 2022-07-14 tracey .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 a596b957 2022-07-14 tracey .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 a596b957 2022-07-14 tracey .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 a596b957 2022-07-14 tracey .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 a596b957 2022-07-14 tracey .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 a596b957 2022-07-14 tracey .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 a596b957 2022-07-14 tracey .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 a596b957 2022-07-14 tracey .\"
16 a596b957 2022-07-14 tracey .Dd $Mdocdate$
17 59975c69 2022-08-29 stsp .Dt GOTWEBD 8
18 a596b957 2022-07-14 tracey .Os
19 a596b957 2022-07-14 tracey .Sh NAME
20 59975c69 2022-08-29 stsp .Nm gotwebd
21 59975c69 2022-08-29 stsp .Nd Game of Trees Git Fast-CGI repository server for web browsers
22 a596b957 2022-07-14 tracey .Sh SYNOPSIS
23 a596b957 2022-07-14 tracey .Nm
24 a596b957 2022-07-14 tracey .Sh DESCRIPTION
25 a596b957 2022-07-14 tracey .Nm
26 59975c69 2022-08-29 stsp is a Fast-CGI server program which can display the contents of Git
27 59975c69 2022-08-29 stsp repositories via a web browser.
28 a596b957 2022-07-14 tracey The program has been designed to work out of the box with
29 a596b957 2022-07-14 tracey the
30 a596b957 2022-07-14 tracey .Xr httpd 8
31 59975c69 2022-08-29 stsp web server.
32 a596b957 2022-07-14 tracey .Pp
33 a596b957 2022-07-14 tracey Enabling
34 a596b957 2022-07-14 tracey .Nm
35 a596b957 2022-07-14 tracey requires the following steps:
36 a596b957 2022-07-14 tracey .Bl -enum
37 a596b957 2022-07-14 tracey .It
38 a596b957 2022-07-14 tracey The
39 a596b957 2022-07-14 tracey .Xr httpd.conf 5
40 a596b957 2022-07-14 tracey configuration file must be adjusted to run
41 a596b957 2022-07-14 tracey .Nm
42 59975c69 2022-08-29 stsp as a Fast-CGI helper program.
43 a596b957 2022-07-14 tracey The
44 a596b957 2022-07-14 tracey .Sx EXAMPLES
45 a596b957 2022-07-14 tracey section below contains an appropriate configuration file sample.
46 a596b957 2022-07-14 tracey .It
47 59975c69 2022-08-29 stsp httpd(8) must be enabled and started:
48 a596b957 2022-07-14 tracey .Bd -literal -offset indent
49 59975c69 2022-08-29 stsp # rcctl enable httpd
50 59975c69 2022-08-29 stsp # rcctl start httpd
51 a596b957 2022-07-14 tracey .Ed
52 a596b957 2022-07-14 tracey .It
53 a596b957 2022-07-14 tracey Optionally, the run-time behaviour of
54 a596b957 2022-07-14 tracey .Nm
55 a596b957 2022-07-14 tracey can be configured via the
56 59975c69 2022-08-29 stsp .Xr gotwebd.conf 5
57 a596b957 2022-07-14 tracey configuration file.
58 a596b957 2022-07-14 tracey .It
59 a596b957 2022-07-14 tracey Git repositories must be created at a suitable location inside the
60 a596b957 2022-07-14 tracey web server's
61 a596b957 2022-07-14 tracey .Xr chroot 2
62 a596b957 2022-07-14 tracey environment.
63 a596b957 2022-07-14 tracey These repositories should
64 a596b957 2022-07-14 tracey .Em not
65 e4556f5a 2022-08-30 stsp be writable by the user ID shared between
66 e4556f5a 2022-08-30 stsp .Nm
67 e4556f5a 2022-08-30 stsp and
68 e4556f5a 2022-08-30 stsp .Xr httpd 8 .
69 a596b957 2022-07-14 tracey The default location for repositories published by
70 a596b957 2022-07-14 tracey .Nm
71 a596b957 2022-07-14 tracey is
72 a596b957 2022-07-14 tracey .Pa /var/www/got/public .
73 a596b957 2022-07-14 tracey .It
74 a596b957 2022-07-14 tracey Git repositories served by
75 a596b957 2022-07-14 tracey .Nm
76 a596b957 2022-07-14 tracey should be kept up-to-date with a mechanism such as
77 a596b957 2022-07-14 tracey .Cm got fetch ,
78 a596b957 2022-07-14 tracey .Xr git-fetch 1 ,
79 a596b957 2022-07-14 tracey or
80 a596b957 2022-07-14 tracey .Xr rsync 1 ,
81 a596b957 2022-07-14 tracey scheduled by
82 a596b957 2022-07-14 tracey .Xr cron 8 .
83 a596b957 2022-07-14 tracey .El
84 a596b957 2022-07-14 tracey .Sh FILES
85 a596b957 2022-07-14 tracey .Bl -tag -width /var/www/got/public/ -compact
86 a596b957 2022-07-14 tracey .It Pa /var/www/got/public/
87 a596b957 2022-07-14 tracey Default location for Git repositories served by
88 a596b957 2022-07-14 tracey .Nm .
89 a596b957 2022-07-14 tracey This location can be adjusted in the
90 59975c69 2022-08-29 stsp .Xr gotwebd.conf 5
91 a596b957 2022-07-14 tracey configuration file.
92 59975c69 2022-08-29 stsp .It Pa /var/www/bin/gotwebd/
93 a596b957 2022-07-14 tracey Directory containing statically linked
94 a596b957 2022-07-14 tracey .Xr got 1
95 a596b957 2022-07-14 tracey helper programs which are run by
96 a596b957 2022-07-14 tracey .Nm
97 a596b957 2022-07-14 tracey to read Git repositories.
98 59975c69 2022-08-29 stsp .It Pa /var/www/htdocs/gotwebd/
99 a596b957 2022-07-14 tracey Directory containing HTML, CSS, and image files used by
100 a596b957 2022-07-14 tracey .Nm .
101 59975c69 2022-08-29 stsp .It Pa /tmp/
102 a596b957 2022-07-14 tracey Directory for temporary files created by
103 a596b957 2022-07-14 tracey .Nm .
104 a596b957 2022-07-14 tracey .El
105 a596b957 2022-07-14 tracey .Sh EXAMPLES
106 a596b957 2022-07-14 tracey Example configuration for httpd.conf:
107 a596b957 2022-07-14 tracey .Bd -literal -offset indent
108 a596b957 2022-07-14 tracey
109 a596b957 2022-07-14 tracey types { include "/usr/share/misc/mime.types" }
110 a596b957 2022-07-14 tracey server "gotweb.example.com" {
111 a596b957 2022-07-14 tracey listen on * port 80
112 59975c69 2022-08-29 stsp root "/htdocs"
113 59975c69 2022-08-29 stsp location "/gotwebd-unix/*" {
114 59975c69 2022-08-29 stsp fastcgi socket "/run/gotweb.sock"
115 59975c69 2022-08-29 stsp }
116 59975c69 2022-08-29 stsp location "/gotwebd-tcp/*" {
117 59975c69 2022-08-29 stsp fastcgi socket tcp 127.0.0.1 9000
118 59975c69 2022-08-29 stsp }
119 59975c69 2022-08-29 stsp location "/*" {
120 59975c69 2022-08-29 stsp directory index "index.html"
121 59975c69 2022-08-29 stsp }
122 a596b957 2022-07-14 tracey }
123 a596b957 2022-07-14 tracey .Ed
124 a596b957 2022-07-14 tracey .Sh SEE ALSO
125 a596b957 2022-07-14 tracey .Xr got 1 ,
126 a596b957 2022-07-14 tracey .Xr git-repository 5 ,
127 59975c69 2022-08-29 stsp .Xr gotwebd.conf 5 ,
128 59975c69 2022-08-29 stsp .Xr httpd 8
129 a596b957 2022-07-14 tracey .Sh AUTHORS
130 59975c69 2022-08-29 stsp .An Omar Polo Aq Mt op@openbsd.org
131 a596b957 2022-07-14 tracey .An Stefan Sperling Aq Mt stsp@openbsd.org
132 59975c69 2022-08-29 stsp .An Tracey Emery Aq Mt tracey@traceyemery.net