Commit Briefs

Omar Polo

fix `log access path' with chroot

We should open the log file inside the chroot; missed in 4acf495f41d2c26136e99072293ca8b9bff91dc0. See https://github.com/omar-polo/gmid/issues/24


Omar Polo

convert remaining code to the imsg getters

Now gmid doesn't touch anymore the internals of the imsg structs.


Omar Polo

configure: add --sysconfdir / $SYSCONFDIR handling

so that we don't have to hardcode /etc in gmid.c. Helps on systems like FreeBSD where the non-base programs are expected to look for their config in /usr/local/etc.


Omar Polo

fix configtest with chroot

The configtest checks try to open the root directories too, operation that can fail when they're expected to be inside a chroot.


Omar Polo

copyright++


Omar Polo

tweak log_request() comment

gg -> gemexp and better wording.



Omar Polo

remove debugging leftover


Omar Polo

try hard at loading the configuration during conftest (-n)

Attempt to do also a few more steps that were previously done only at runtime. This can help verifying that the keypairs are matching for example, but also that there are no typos in the path to the root directories. Was requested some time ago by Marian Mizik, thanks for the feature request!


Omar Polo

add `log syslog facility' to use a different syslog(3) facility

Was requested ages ago by Karl Jeacle, now that there is some better support for configuring the logging there's no excuse to add this. It helps with filtering from syslog.d / syslog.conf.



Omar Polo

change the 'condensed' style to include the size of the request too

will be used in the future to log how much byte a titan request uploaded.



Omar Polo

rename IMSG_LOG_TYPE to ACCESS


Omar Polo

allow to change the logging style; introduce some new ones

add `log style <style>'; The old default is called `legacy' now, a new default format is added called `condensed', and `common' and `combined' to mimick Apache httpd and nginx (respectively) are also added.