Commits
- Commit:
c8af7691c98d6cd5864e6c2b62642c6c3e3ca086
- From:
- Omar Polo <op@omarpolo.com>
- Date:
simplify gotwebd' server matching
Currently, if there is not a match on the server name, it attempts
to match the "subdomain" against the server names, and fall back
to the first server defined.
The server name is taken from the SERVER_NAME fastcgi' parameter,
the subdomain extracted from HTTP_HOST.
Keep only the SERVER_NAME matching, but still use the first server
defined if there's no match.
Fix the manpage documenting how matching works and drop the lie
about SNI as gotwebd doesn't do TLS but just looks at what the
upstream http server decided.
ok stsp@
- Commit:
031687baf3081932383b85041c49de781c43e432
- From:
- Josiah Frentsos <jfrent@tilde.team>
- Via:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd.conf: disallow yes/no for booleans
Supporting both "no" and "on" as valid syntax with an opposite
meaning could easily result in accidental misconfiguration.
Suggested by stsp, tracey agrees. Patch by Josiah Frentsos, thanks!
- Commit:
92e48697fbbd62dbe4f1330698c13c1a93065b5e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd.conf: sync defaults
The first example is meant to show the default values for all the
options. Sync with reality.
- Commit:
3a1c1a1b20ae87fe3c8fe3d040d16e816ff0905c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd.conf: use `listen on socket' syntax for UNIX sockets too
and drop unix_socket and unix_socket_path in server context.
ok stsp@
- Commit:
05791aa0b360dbff2a5212ef7babf4f96caf3940
- From:
- Paul W. Rankin <hello@paulwrankin.com>
- Via:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: remove got_prefix in gotwebd.conf(5) example
- Commit:
d375d894c3c39971790fb6692b82b1e20fec6ce9
- From:
- Josiah Frentsos <jfrent@tilde.team>
- Via:
- Omar Polo <op@omarpolo.com>
- Date:
put manual page sections in the proper order
- Commit:
d5996b9efcd57875669fb0b06006ecf8cf566272
- From:
- Landry Breuil <landry@openbsd.org>
- Date:
add respect_exportok flag, defaulting to off
allows to hide repositories if they have the magic git-daemon-export-ok file
ok op@ tracey@ stsp@
- Commit:
47b307cd821b00964d3c5aea35c86689df2fe26d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd.conf: add syntax for defining macros and document them
macros are already supported by parse.y but can only be defined with the
-D flag. This adds the ``usual'' syntax for macros: varname = string.
While here, fix the markup of the -D flag in the SYNOPSIS and sync the
global `grammar' yacc rule with other parse.y grammars in base:
- add the /* empty */ comment
- increment file->errors on errors
ok stsp@, "sure, go for it" tracey@
- Commit:
bde6e1ec88d921fed455815c2687b36f64943b23
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
document caveat when configuring gotwebd to listen on a network interface
- Commit:
fa61bdcb23187d65bfa426507dac0cae53857d7c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd.conf.5: fix double `the'
- Commit:
7e8fc9b50c3157452382726df908276e6db69ccd
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix documentation of gotwebd.conf default path
- Commit:
6c8aa58fb8d3f1ee21b1388770cf1fd607413ed4
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove fcgi_socket keyword from gotwebd.conf; "listen on" now implies it
ok op@
- Commit:
f21aef012e9407e826ba90b441056a0b38cbc720
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
hint at SNI support in gotwebd.conf.5; suggested by tracey
- Commit:
e0e2a8619d6af348681b5e70adf4b100b07f6559
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
Xr httpd manual pages
- Commit:
7e047b0e30dcf01c845aa006837d82fbc4e5f288
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add missing whitespace; spotted by tracey
- Commit:
0dd809988fabd40f85513e145656511e2b94abca
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
document gotwebd's server concept better; requested by tracey
- Commit:
d69013de25e17ed6f981d46d94d23f626a0e6325
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
gotwebd.conf should Xr gotwebd, not gotweb
- Commit:
59975c69cab9a8e55c23a6c9dbfb0283be951941
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
initial pass over gotwebd docs
tracey is fine with gotwebd.8 but gotweb.conf.5 still needs some work
- Commit:
a596b9579655b53f1549498aff25ae1d2c9dfc81
- From:
- Tracey Emery <tracey@traceyemery.net>
- Date:
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