2 .\" Copyright (c) 2022 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 Daemon
25 .Op Fl f Ar config-file
28 is a Git repository server which listens on a
30 socket and relies on its companion tool
32 to handle Git-protocol communication over the network, via
35 The Git repository format is described in
36 .Xr git-repository 5 .
39 requires a configuration file in order to run.
40 The configuration file format is described in
43 It is recommended to restrict
45 features available to users of
57 Send log output to stderr.
58 .It Fl f Ar config-file
59 Set the path to the configuration file.
60 If not specified, the file
65 Only check the configuration file for validity.
68 Verbosity increases if this option is used multiple times.
71 .Bl -tag -width Ds -compact
73 Default location of the configuration file.
74 .It Pa /var/run/gotd.sock
75 Default location of the unix socket which
78 This path can be configured in
82 Create an empty repository to be served by
84 ensuring that it can only be accessed by the _gotd user:
86 .Dl # mkdir -p /git/myrepo.git
87 .Dl # chmod 700 /git/myrepo.git
88 .Dl # chown _gotd /git/myrepo.git
89 .Dl # su -m _gotd -c 'gotadmin init /git/myrepo.git'
91 Add the new repository to
93 granting read-write access to the flan_hacker user account, and
97 .Dl # cat >> /etc/gotd.conf <<EOF
98 .Dl repository 'myrepo' {
99 .Dl path '/git/myrepo.git'
100 .Dl permit rw flan_hacker
103 .Dl # rcctl restart gotd
105 The flan_hacker user can now populate the empty repository with
110 .Xr git-repository 5 ,
113 .An Stefan Sperling Aq Mt stsp@openbsd.org