Blob
- Date:
- Message:
- import gotwebd thread fcgi response to client for rendering in browser as data is returned fix potential problem with a stuck loop if the client is hammering the server with random clicks and stop/restarts render our index! WOOHOO! small var refactoring. fcgi.c to handle all clean-up, various error clean-up remove output used to trace down got bug temporarily stop overloading a socket, but a better solution needs to be found return on fcgi_gen_response, so we can track if a client is writable or not this stops page creation when the client is unavailable remove old comments enable profile building, although, i don't think this works thoroughly in a priv/proc daemon catch more errors correctly count repos remove temp logger we don't need to start our responder thread so early. move it to fcgi.c and start when we start processing html kill the unneeded thread, stop queueing responses, and just write to clients immediately clean up some memory leaks and dead stores rework querystring so an error can be displayed instead of showing the index on querystring error get framework in place for the rest of the content add server struct to response struct bo last commit get back a usable gotweb. not sure what i was thinking yesterday properly move our structs around this time remember index page for sitelink, fix leak unused var is annoying, so stop it for now. don't forget to change this! style briefs nearly completed. finish briefs output add briefs to summary cleanup some html properly retrieve next and previous commit ids for list navigation follow naddy's stailq macro change we will never have a previous link on the summary page goto correct label, so we get a previous link on the last page of briefs don't wrap short line simplify got_get_repo_commits code start rendering a diff start rendering a diff this was by accident finish diff output functions cleanup prepare for fd request that was a stupid idea, just flush the priv_fd bo that too. that won't work eith with append in mkstemp that isn't going to work actually zero out the priv_fd missed seek to beginning of file was overwriting first line of diff fsync our fd as well add link to repo path by sitelink and add back verbose fcgi debugging that was removed add modest write heuristics to fcgi_send_response fix dead assignments and XXX comment where a leak is happening that I can't find right now there was no leak. stsp is brilliant and knew it was the cache growing prevent double-free, render prettier err output if we can remove unused variables correctly fix double-free fix gotwebd to build with main's changes after rebase fix double-free don't error on index if pack files missing and fixup some error handling render commits finish up tag briefs and start the tag page finish up tag page unbreak TAGS and SUMMARY actions grab the correct tag from the queue unbreak TAGS and SUMMARY actions again update some error handling clean up unneeded code and start tree output render tree render branches remove tags from summary if there aren't any fix tree div structure and start blob render render blob render blame fix tree href in briefs clean up some css add headref to querystrings load correct commit for tree and diff fixup some error output update some copyright dates add full SNI support rm debug line found by Lucas6023, notified via IRC. thanks!! fix tree fix crash when querystring is manipulated to not have a commit id in certain instances. also break a stuck while loop on client error. fix for new got_object_id_by_path arguments rebase and fix prep for multiple fds per socket, instead of just one fix overlooked shift/reduce conflicts backout priv_fds as a list. after discussion with stsp, an array and length are the better direction prepare array of fds to pass into got functions make a new set of pack fds, which will be passed to got_repo_open work with new pack_fds in got_repo_open give output when no tags exist escape html in blame output change files listed in tree view to show blob, file commits, and blame, instead of blob, blob, blame. idea from mp4 on irc. this is way more handy. stop populating the queue from the headref and figure out previous commit id while iterating. this should reduce some overhead. actually purge our sockets instead of not using the function start work with new blob rm volatile use new diff change func names no more temp files increase blame number line width set content-type to text/plain so firefox won't download files rm test infra for now account for -Wwrite-strings fix for sigs and algorithm choice clean up some leaks and other mistakes
- Actions:
- History | Blame | Raw File
1 .\"2 .\" Copyright (c) 2020 Tracey Emery <tracey@traceyemery.net>3 .\"4 .\" Permission to use, copy, modify, and distribute this software for any5 .\" purpose with or without fee is hereby granted, provided that the above6 .\" copyright notice and this permission notice appear in all copies.7 .\"8 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES9 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF10 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR11 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES12 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN13 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF14 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.15 .\"16 .Dd $Mdocdate$17 .Dt GOTWEB.CONF 518 .Os19 .Sh NAME20 .Nm gotweb.conf21 .Nd gotweb configuration file22 .Sh DESCRIPTION23 .Nm24 is the run-time configuration file for25 .Xr gotweb 8 .26 .Pp27 The file format is line-based, with one configuration directive per line.28 Any lines beginning with a29 .Sq #30 are treated as comments and ignored.31 .Pp32 Paths mentioned in33 .Nm34 must be relative to35 .Pa /var/www ,36 the37 .Xr chroot 238 environment of39 .Xr httpd 8 .40 .Sh GLOBAL CONFIGURATION41 The available configuration directives are as follows:42 .Bl -tag -width Ds43 .It Ic got_max_commits_display Ar number44 Set the maximum amount of commits displayed per page.45 .It Ic got_logo Ar path46 Set the path to an image file containing a logo to be displayed.47 .It Ic got_logo_url Ar url48 Set a hyperlink for the logo.49 .It Ic got_max_repos Ar number50 Set the maximum amount of repositories51 .Xr gotweb 852 will work with.53 .It Ic got_max_repos_display Ar number54 Set the maximum amount of repositories displayed on the index screen.55 .It Ic got_show_repo_age Ar on | off56 Toggle display of last repository modification date.57 .It Ic got_show_repo_cloneurl Ar on | off58 Toggle display of clone URLs for a repository.59 This requires the creation of a60 .Pa cloneurl61 file inside the repository which contains one URL per line.62 .It Ic got_show_repo_description Ar on | off63 Toggle display of the repository description.64 The65 .Pa description66 file in the repository should be updated with an appropriate description.67 .It Ic got_repos_path Ar path68 Set the path to the directory which contains Git repositories that69 .Xr gotweb 870 should publish.71 .It Ic got_show_repo_owner Ar on | off72 Set whether to display the repository owner.73 Displaying the owner requires owner information to be added to the74 .Pa config75 file in the repository.76 .Xr gotweb 877 will parse owner information from either a [gotweb] or a [gitweb] section.78 For example:79 .Bd -literal -offset indent80 [gotweb]81 owner = "Your Name"82 .Ed83 .It Ic got_site_link Ar string84 Set the displayed site link name for the index page.85 .It Ic got_site_name Ar string86 Set the displayed site name title.87 .It Ic got_site_owner Ar string88 Set the displayed site owner.89 .It Ic got_show_site_owner Ar on | off90 Toggle display of the site owner.91 .It Ic got_www_path Ar string92 Set the public gotweb httpd path.93 .El94 .Sh EXAMPLES95 These are the currently configurable items for96 .Xr gotweb 897 with their default values.98 .Bd -literal -offset indent100 #101 # gotweb options102 # all paths relative to /var/www (httpd chroot jail)103 #105 got_repos_path "/got/public"106 got_www_path "/gotweb"108 #got_max_repos 100109 #got_max_repos_display 25110 got_max_commits_display 50112 got_site_name "my public repos"113 got_site_owner "Got Owner"114 got_site_link "repos"116 got_logo "got.png"117 got_logo_url "https://gameoftrees.org"119 # on by default120 #got_show_site_owner off121 #got_show_repo_owner off122 #got_show_repo_age false123 #got_show_repo_description no124 #got_show_repo_cloneurl off125 .Ed126 .Sh FILES127 .Bl -tag -width Ds -compact128 .It Pa /var/www/etc/gotweb.conf129 Location of the130 .Nm131 configuration file.132 .El133 .Sh SEE ALSO134 .Xr got 1 ,135 .Xr gotweb 8