Commits
- Commit:
20f279724bc851d5e6b52144ce9a6ba987d5fc5d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd.conf: unbreak max_repos_display 0
in 1a0c81fb61 I've added a range check too strict for max_repos_display,
as zero is allowed and means "show all the repositories".
- Commit:
f4a5cef1546205afab47f148edefabcf77c06d3b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: set chroot path in config_init()
saves a bit fiddling around with ternary operators. sockets_run()
will reset the chroot to the default since it calls again config_init(),
but at that stage it's not important anymore.
ok stsp@
- Commit:
a678036d5fc91d90d799f3ed394f0f721d227d12
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd.conf: error if chroot is the empty string
- Commit:
1a0c81fb613b80af38dbc7f37c12f42a34b363d6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd.conf: range-check numeric values and raise errors
- 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:
f4425f95a55d6c26f06ecef7b3b8aa6a4a4247de
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: disallow 1 for max_commits_display and report range errors
ok stsp
- Commit:
fb307946174c95e32d2048584c6ab1ce24f3ea00
- From:
- Omar Polo <op@omarpolo.com>
- Date:
PF_UNSPEC -> AF_UNSPEC
While they're the same value, it's more correct to use AF_UNSPEC in this
case. While here, change SOCK_DGRAM to SOCK_STREAM since it's what
we'll be using.
ok stsp@
- Commit:
abf3e3f40c20ebf4efdce3c7e83efe11d0065ed0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove host, host_v4 and host_v6; rename host_dns -> host
host_dns() (now just host()) uses getaddrinfo() which knows already
how to handle IPv4/IPv6 addresses. Saves a good amount of duplication.
ok stsp@
- Commit:
1adf41e8089257344579fba9c7e03d7ebc0c15b8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: drop unused `prefixlen' from struct address
ok stsp@
- Commit:
df2d3cd2545e0a1579ce83ae137e52135755ed1f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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@
- 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:
8556b86bf794dcc61ebc907767dca29b3b5ac27f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fmt
- 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:
4cdd299d8c1d142b26efc3351dbab1c185f2c492
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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@
- Commit:
b1328b3e37580e44e7c53530bfc32374b74514fc
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: garbage collect %token FCGI_SOCKET
ok stsp@
- Commit:
6c8aa58fb8d3f1ee21b1388770cf1fd607413ed4
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove fcgi_socket keyword from gotwebd.conf; "listen on" now implies it
ok op@
- Commit:
67d8de2a7e03c31bd8c93553fcb950fa7afc0db7
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
allow multiple "listen on" statements per server in gotwebd.conf
ok tracey
- Commit:
17132eaa7c11854dadce91afd817b4676e716b04
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
change gotwebd.conf fcgi socket syntax to "listen on 'foo' port 'bar'"
ok op@
- Commit:
859aa9f48371a84128b60e2c2ba9f873a4ea70cf
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
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.
- Commit:
d72940a3a166aaa6620b4b444af1fa16b5e216f5
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix gotwebd default fcgi listen port byte-order (port 10275 -> port 9000)
ok tracey
- Commit:
2fb25d87ff7b3572bc98a7bea5f7380727b180e5
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
gotwebd: listen on localhost only by default
ok tracey
- Commit:
73ffdfc038e3a5f5bf130d7c5754428ff92f69e4
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
gotwebd: don't listen on FCGI sockets when FCGI is not enabled
ok tracey
- Commit:
2ad48e9a6b577bb911e97eb269ed1654dbb048f9
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
gotwebd: do not allocate server/socket list heads separately
ok millert@
- Commit:
e087e1f6e7b926dcff23d90de416399c114d582e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
gotwebd: do not allocate address list heads separately, this is unnecessary
ok millert@