2 3efd8e31 2022-10-23 thomas .\" Copyright (c) 2022 Stefan Sperling <stsp@openbsd.org>
4 3efd8e31 2022-10-23 thomas .\" Permission to use, copy, modify, and distribute this software for any
5 3efd8e31 2022-10-23 thomas .\" purpose with or without fee is hereby granted, provided that the above
6 3efd8e31 2022-10-23 thomas .\" copyright notice and this permission notice appear in all copies.
8 3efd8e31 2022-10-23 thomas .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 3efd8e31 2022-10-23 thomas .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 3efd8e31 2022-10-23 thomas .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 3efd8e31 2022-10-23 thomas .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 3efd8e31 2022-10-23 thomas .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 3efd8e31 2022-10-23 thomas .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 3efd8e31 2022-10-23 thomas .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 3efd8e31 2022-10-23 thomas .Dd $Mdocdate$
17 3efd8e31 2022-10-23 thomas .Dt GOTD.CONF 5
20 3efd8e31 2022-10-23 thomas .Nm gotd.conf
21 3efd8e31 2022-10-23 thomas .Nd gotd configuration file
22 3efd8e31 2022-10-23 thomas .Sh DESCRIPTION
24 3efd8e31 2022-10-23 thomas is the run-time configuration file for
25 3efd8e31 2022-10-23 thomas .Xr gotd 8 .
27 3efd8e31 2022-10-23 thomas The file format is line-based, with one configuration directive per line.
28 3efd8e31 2022-10-23 thomas Any lines beginning with a
30 3efd8e31 2022-10-23 thomas are treated as comments and ignored.
31 3efd8e31 2022-10-23 thomas .Sh GLOBAL CONFIGURATION
32 3efd8e31 2022-10-23 thomas The available global configuration directives are as follows:
33 3efd8e31 2022-10-23 thomas .Bl -tag -width Ds
34 3efd8e31 2022-10-23 thomas .It Ic unix_socket Ar path
35 3efd8e31 2022-10-23 thomas Set the path to the unix socket which
36 3efd8e31 2022-10-23 thomas .Xr gotd 8
37 3efd8e31 2022-10-23 thomas should listen on.
38 3efd8e31 2022-10-23 thomas If not specified, the path
39 3efd8e31 2022-10-23 thomas .Pa /var/run/gotd.sock
40 3efd8e31 2022-10-23 thomas will be used.
41 3efd8e31 2022-10-23 thomas .It Ic unix_group Ar group
43 3efd8e31 2022-10-23 thomas .Ar group ,
44 3efd8e31 2022-10-23 thomas defined in the
45 3efd8e31 2022-10-23 thomas .Xr group 5
46 3efd8e31 2022-10-23 thomas file, which is allowed to access
47 3efd8e31 2022-10-23 thomas .Xr gotd 8
49 3efd8e31 2022-10-23 thomas .Xr gotsh 1 .
51 3efd8e31 2022-10-23 thomas .Xr gotd 8
52 3efd8e31 2022-10-23 thomas user must be a secondary member of this group.
53 3efd8e31 2022-10-23 thomas If not specified, the group _gotsh will be used.
54 3efd8e31 2022-10-23 thomas .It Ic user Ar user
57 3efd8e31 2022-10-23 thomas which will run
58 3efd8e31 2022-10-23 thomas .Xr gotd 8 .
59 3efd8e31 2022-10-23 thomas Initially,
60 3efd8e31 2022-10-23 thomas .Xr gotd 8
61 3efd8e31 2022-10-23 thomas requires root privileges in order to create its unix socket and start
62 3efd8e31 2022-10-23 thomas child processes in a
63 3efd8e31 2022-10-23 thomas .Xr chroot 2
64 3efd8e31 2022-10-23 thomas environment.
65 3efd8e31 2022-10-23 thomas Afterwards,
66 3efd8e31 2022-10-23 thomas .Xr gotd 8
67 3efd8e31 2022-10-23 thomas drops privileges to the specified
68 3efd8e31 2022-10-23 thomas .Ar user .
69 3efd8e31 2022-10-23 thomas If not specified, the user _gotd will be used.
71 3efd8e31 2022-10-23 thomas .Sh REPOSITORY CONFIGURATION
72 3efd8e31 2022-10-23 thomas At least one repository context must exist for
73 3efd8e31 2022-10-23 thomas .Xr gotd 8
74 3efd8e31 2022-10-23 thomas to function.
76 3efd8e31 2022-10-23 thomas A repository context is declared with a unique
77 3efd8e31 2022-10-23 thomas .Ar name ,
78 3efd8e31 2022-10-23 thomas followed by repository-specific configuration directives inside curly braces:
80 3efd8e31 2022-10-23 thomas .Ic repository Ar name Brq ...
85 3efd8e31 2022-10-23 thomas clients can connect to a repository by including the repository's unique
87 3efd8e31 2022-10-23 thomas in the request URL.
88 3efd8e31 2022-10-23 thomas Clients appending the string
92 3efd8e31 2022-10-23 thomas will also be accepted.
94 3efd8e31 2022-10-23 thomas If desired, the
96 3efd8e31 2022-10-23 thomas may contain path-separators,
98 3efd8e31 2022-10-23 thomas to expose repositories as part of a virtual client-visible directory hierarchy.
100 3efd8e31 2022-10-23 thomas The available repository configuration directives are as follows:
101 3efd8e31 2022-10-23 thomas .Bl -tag -width Ds
102 3efd8e31 2022-10-23 thomas .It Ic path Ar path
103 3efd8e31 2022-10-23 thomas Set the path to the Git repository.
105 3efd8e31 2022-10-23 thomas .Sh FILES
106 3efd8e31 2022-10-23 thomas .Bl -tag -width Ds -compact
107 3efd8e31 2022-10-23 thomas .It Pa /etc/gotd.conf
108 3efd8e31 2022-10-23 thomas Location of the
110 3efd8e31 2022-10-23 thomas configuration file.
112 3efd8e31 2022-10-23 thomas .Sh EXAMPLES
113 3efd8e31 2022-10-23 thomas .Bd -literal -offset indent
114 3efd8e31 2022-10-23 thomas # Default unix_group and user values:
115 3efd8e31 2022-10-23 thomas unix_group _gotsh
116 3efd8e31 2022-10-23 thomas user _gotd
118 3efd8e31 2022-10-23 thomas # This repository can be accessed via ssh://user@example.com/src
119 3efd8e31 2022-10-23 thomas repository "src" {
120 3efd8e31 2022-10-23 thomas path "/var/git/src.git"
123 3efd8e31 2022-10-23 thomas # This repository can be accessed via
124 3efd8e31 2022-10-23 thomas # ssh://user@example.com/openbsd/ports
125 3efd8e31 2022-10-23 thomas repository "openbsd/ports" {
126 3efd8e31 2022-10-23 thomas path "/var/git/ports.git"
129 3efd8e31 2022-10-23 thomas .Sh SEE ALSO
130 3efd8e31 2022-10-23 thomas .Xr got 1 ,
131 3efd8e31 2022-10-23 thomas .Xr gotsh 1 ,
132 3efd8e31 2022-10-23 thomas .Xr group 5 ,
133 3efd8e31 2022-10-23 thomas .Xr gotd 8