Commit Briefs

Omar Polo

gotwebd: provide gotweb_render_page() entrypoint for all pages

simplify gotweb_process_request more, handling all the pages inside the big switch. There's only one entrypoint for rendering the templates gotweb_render_page() that takes the page' content as argument. The only real difference is that gotweb_render_index() now skips directory entries which fails to handle. ok tracey@


Omar Polo

gotwebd.conf: use `listen on socket' syntax for UNIX sockets too

and drop unix_socket and unix_socket_path in server context. ok stsp@


Omar Polo

fmt


Landry Breuil

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@


Omar Polo

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@


Omar Polo

gotwebd: fix crash handling -D

Avoid crashing by corrupting the pointer instead of writing to it and fix how sym is generated: it shouldn't include the '=' sign. ok / improvement tb@


Omar Polo

gotwebd: garbage collect %token FCGI_SOCKET

ok stsp@


Stefan Sperling

remove fcgi_socket keyword from gotwebd.conf; "listen on" now implies it

ok op@


Stefan Sperling

allow multiple "listen on" statements per server in gotwebd.conf

ok tracey


Stefan Sperling

change gotwebd.conf fcgi socket syntax to "listen on 'foo' port 'bar'"

ok op@


Stefan Sperling

fix previous: store port number in host byte order, convert for struct sockaddr

With the previous patch the listen port was correct, but the debug log output was still displaying the swapped port number. Now both listen behaviour and debug log output agree.


Stefan Sperling

fix gotwebd default fcgi listen port byte-order (port 10275 -> port 9000)

ok tracey


Stefan Sperling

gotwebd: listen on localhost only by default

ok tracey


Stefan Sperling

gotwebd: don't listen on FCGI sockets when FCGI is not enabled

ok tracey


Stefan Sperling

gotwebd: do not allocate server/socket list heads separately

ok millert@