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 gotweb 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 configuration directives are as follows:
43 .It Ic got_max_commits_display Ar number
44 Set the maximum amount of commits displayed per page.
45 .It Ic got_logo Ar path
46 Set the path to an image file containing a logo to be displayed.
47 .It Ic got_logo_url Ar url
48 Set a hyperlink for the logo.
49 .It Ic got_max_repos Ar number
50 Set the maximum amount of repositories
53 .It Ic got_max_repos_display Ar number
54 Set the maximum amount of repositories displayed on the index screen.
55 .It Ic got_show_repo_age Ar on | off
56 Toggle display of last repository modification date.
57 .It Ic got_show_repo_cloneurl Ar on | off
58 Toggle display of clone URLs for a repository.
59 This requires the creation of a
61 file inside the repository which contains one URL per line.
62 .It Ic got_show_repo_description Ar on | off
63 Toggle display of the repository description.
66 file in the repository should be updated with an appropriate description.
67 .It Ic got_repos_path Ar path
68 Set the path to the directory which contains Git repositories that
71 .It Ic got_show_repo_owner Ar on | off
72 Set whether to display the repository owner.
73 Displaying the owner requires owner information to be added to the
75 file in the repository.
77 will parse owner information from either a [gotweb] or a [gitweb] section.
79 .Bd -literal -offset indent
83 .It Ic got_site_link Ar string
84 Set the displayed site link name for the index page.
85 .It Ic got_site_name Ar string
86 Set the displayed site name title.
87 .It Ic got_site_owner Ar string
88 Set the displayed site owner.
89 .It Ic got_show_site_owner Ar on | off
90 Toggle display of the site owner.
91 .It Ic got_www_path Ar string
92 Set the public gotweb httpd path.
95 These are the currently configurable items for
97 with their default values.
98 .Bd -literal -offset indent
102 # all paths relative to /var/www (httpd chroot jail)
105 got_repos_path "/got/public"
106 got_www_path "/gotweb"
109 #got_max_repos_display 25
110 got_max_commits_display 50
112 got_site_name "my public repos"
113 got_site_owner "Got Owner"
114 got_site_link "repos"
117 got_logo_url "https://gameoftrees.org"
120 #got_show_site_owner off
121 #got_show_repo_owner off
122 #got_show_repo_age false
123 #got_show_repo_description no
124 #got_show_repo_cloneurl off
127 .Bl -tag -width Ds -compact
128 .It Pa /var/www/etc/gotweb.conf