2 .\" Copyright (c) 2020 Tracey Emery <tracey@traceyemery.net>
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 gotwebd configuration file
24 is the run-time configuration file for
27 The file format is line-based, with one configuration directive per line.
28 Any lines beginning with a
30 are treated as comments and ignored.
40 .Sh GLOBAL CONFIGURATION
41 The available global configuration directives are as follows:
51 .It Ic prefork Ar number
52 Run the specified number of server processes.
53 .It Ic unix_socket Ar on | off
54 Controls whether the servers will listen on unix sockets by default.
55 .It Ic unix_socket_name Ar path
56 Set the path to the default unix socket.
58 .Sh SERVER CONFIGURATION
59 At least one server context must exist for
62 In case no server context is defined in the configuration file, a default
63 server context will be used, which listens on a unix socket at
64 .Pa /var/www/run/gotweb.sock
65 and uses default parameters for all applicable settings.
67 A server context is declared with a unique
69 followed by server-specific configuration directives inside curly braces:
71 .Ic server Ar name Brq ...
74 is compatible with TLS Server Name Indication (SNI), provided the
76 of a server defined in
78 corresponds to the name of a server defined in
81 The available server configuration directives are as follows:
83 .It Ic custom_css Ar path
84 Set the path to a custom Cascading Style Sheet (CSS) to be used.
85 If this option is not specified then a default style sheet will be used.
86 .It Ic listen on Ar address Ic port Ar number
87 Configure an address and port for incoming FCGI TCP connections.
90 arguments are hostnames, IP4 addresses, IPv6 addresses, and network
94 argument may be number or a service name defined in
97 May be specified multiple times to build up a list of listening sockets.
98 However, a given combination of address and port may only be used by
101 Set the path to an image file containing a logo to be displayed.
102 .It Ic logo_url Ar url
103 Set a hyperlink for the logo.
104 .It Ic max_commits_display Ar number
105 Set the maximum amount of commits displayed per page.
106 .It Ic max_repos Ar number
107 Set the maximum amount of repositories
110 .It Ic max_repos_display Ar number
111 Set the maximum amount of repositories displayed on the index screen.
112 .It Ic repos_path Ar path
113 Set the path to the directory which contains Git repositories that
114 the server should publish.
115 .It Ic show_repo_age Ar on | off
116 Toggle display of last repository modification date.
117 .It Ic show_repo_cloneurl Ar on | off
118 Toggle display of clone URLs for a repository.
119 This requires the creation of a
121 file inside the repository which contains one URL per line.
122 .It Ic show_repo_description Ar on | off
123 Toggle display of the repository description.
126 file in the repository should be updated with an appropriate description.
127 .It Ic show_repo_owner Ar on | off
128 Set whether to display the repository owner.
129 Displaying the owner requires owner information to be added to the
131 file in the repository.
133 will parse owner information from either a [gotweb] or a [gitweb] section.
135 .Bd -literal -offset indent
139 .It Ic site_link Ar string
140 Set the displayed site link name for the index page.
141 .It Ic site_name Ar string
142 Set the displayed site name title.
143 .It Ic site_owner Ar string
144 Set the displayed site owner.
145 .It Ic show_site_owner Ar on | off
146 Toggle display of the site owner.
147 .It Ic unix_socket Ar on | off
148 Enable or disable use of unix sockets.
149 .It Ic unix_socket_name Ar path
150 Set the path to the unix socket used by the server.
153 These are the currently configurable items for
155 with their default values.
156 .Bd -literal -offset indent
159 # all paths relative to /var/www (httpd chroot jail)
164 server "localhost-unix" {
165 repos_path "/got/public"
166 unix_socket_name "/run/gotweb.sock"
168 got_site_name "my public repos"
169 got_site_owner "Got Owner"
170 got_site_link "repos"
173 logo_url "https://gameoftrees.org"
179 #show_repo_description no
180 #show_repo_cloneurl off
183 #max_repos_display 25
184 #max_commits_display 50
187 # Example server context for FCGI over TCP connections:
188 #server "localhost-tcp" {
189 # repos_path "/got/public"
191 # listen on 127.0.0.1 port 9000
192 # listen on ::1 port 9000
196 .Bl -tag -width Ds -compact
197 .It Pa /etc/gotwebd.conf
198 Default location of the