Omar Polo
35579431eb
remove debugging leftover
2023-08-07 13:58:43 +00:00
Omar Polo
d72ac636bb
unbreak config_test() when !use_privsep_crypto
...
The new config_test() fails miserably when the privsep crypto engine is
not enabled. As a temporary workaround, forcibly disable it during
config_test() as we're not going to run anyway.
2023-08-07 13:18:04 +00:00
Omar Polo
36a98d50e5
update changelog
2023-08-07 12:40:50 +00:00
Omar Polo
3b431c09d9
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!
2023-08-07 12:40:44 +00:00
Omar Polo
9abba172b6
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.
2023-08-07 09:34:19 +00:00
Omar Polo
3a93c90445
sort logopt
2023-08-07 09:08:23 +00:00
Omar Polo
a250aff257
comment out the condensed log style in the manpage
2023-08-04 10:07:02 +00:00
Omar Polo
f23b708726
set the default logging style back to legacy
...
I think the condensed is better but it'll need to change post 2.0
to accomodate for logging the number of bytes read in the body of
a titan request (and it's weird to hardcode a zero there.) 2.0
will ship with the legacy logging style thus.
2023-08-04 10:05:44 +00:00
Omar Polo
5d38e5d88d
titan: clean up IRI/URI/URL mess; it's a IRI what we parse
2023-08-04 10:02:18 +00:00
Omar Polo
11ff7f934e
titan: error if the URI is not titan://
2023-08-04 10:01:18 +00:00
Omar Polo
d671434bc7
titan: better logging for unexpected EOFs
...
upon an unexpected EOF, tls_error() returns NULL, so log the real
reason iomux returned -1.
2023-08-04 09:57:27 +00:00
Omar Polo
5905156665
titan: rename parse_err to errstr
2023-08-04 09:53:18 +00:00
Omar Polo
1b1a6fb7ee
titan: iomux: return -1 on EOF without receving anything
...
otherwise it enters an infinite loop where it tries to read, return
zero, and tries again...
2023-08-04 09:52:27 +00:00
Omar Polo
fcc5a371b1
titan: fix appending of path parameters
...
the parameters need to be added at the end of the path, not at the
end of the URL.
2023-08-04 09:49:01 +00:00
Omar Polo
26df50981f
actually use the specified log style
2023-08-03 22:37:34 +00:00
Omar Polo
56054fe197
use the legacy style in the tests for now
2023-08-03 22:37:05 +00:00
Omar Polo
f736c9579c
fix test after log style condensed change
2023-08-03 22:35:49 +00:00
Omar Polo
161651fa5e
gmid.conf.5: add one example of proxy relay-to
2023-08-03 22:24:09 +00:00
Omar Polo
c2bcf6a402
Nm does not make any sense there
2023-08-03 22:17:32 +00:00
Omar Polo
0eeee6f321
minor tweaks to gg(1)
2023-08-03 22:07:40 +00:00
Omar Polo
603e4dd82f
two more missing ge -> gemexp
2023-08-03 22:04:36 +00:00
Omar Polo
564c2ad166
remove the LOGGING section; it's covered by gmid.conf(5)
2023-08-03 22:03:43 +00:00
Omar Polo
547437cc40
fix the macro example
2023-08-01 17:07:46 +00:00
Omar Polo
2c079c9e69
point out that `user' is mandatory if `chroot' is used
2023-08-01 17:06:30 +00:00
Omar Polo
b5963536c8
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.
2023-08-01 16:59:25 +00:00
Omar Polo
98827de5ab
use `log syslog off' in regress to avoid spamming syslog
2023-07-26 08:11:39 +00:00
Omar Polo
0c39da5145
move log syslog after log style
2023-07-26 08:11:21 +00:00
Omar Polo
46bcc4ea95
add log syslog off; don't turn syslog off when log access is specified
2023-07-26 08:10:12 +00:00
Omar Polo
cba01a8687
rename IMSG_LOG_TYPE to ACCESS
2023-07-26 07:55:51 +00:00
Omar Polo
a84492b75f
ge->gemexp forgotten in previous
2023-07-25 20:27:31 +00:00
Omar Polo
471a5250e3
rename ge -> gemexp in regress too
2023-07-25 20:26:26 +00:00
Omar Polo
fdb4572d2f
revamp helper section of the README and mention titan(1)
2023-07-25 20:24:44 +00:00
Omar Polo
82947e8be7
typo
2023-07-25 20:18:44 +00:00
Omar Polo
f8bfba4723
retroactively rename ge -> gemexp in changelog
2023-07-25 20:16:08 +00:00
Omar Polo
f59543490d
rename ge -> gemexp
...
gemserv is already taken...
2023-07-25 20:15:40 +00:00
Omar Polo
857635a107
use the condensed logging style in ge too
2023-07-25 20:10:53 +00:00
Omar Polo
aea87ce91f
sync changelog
2023-07-25 20:08:12 +00:00
Omar Polo
abd261d25b
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.
2023-07-25 20:07:26 +00:00
Omar Polo
2a28b04424
update/sync/correct ChangeLog
2023-07-25 16:30:10 +00:00
Omar Polo
e137cb0348
add missing -include titan.d
2023-07-25 16:11:01 +00:00
Omar Polo
e075021085
still respect `log' when in debug mode
2023-07-24 14:07:28 +00:00
Omar Polo
e5f060f0d2
add a manpage for titan(1)
2023-07-24 09:59:02 +00:00
Omar Polo
3927336855
titan: parse the response code and exit accordingly
...
Exit with 0 if the response code was in the 2x or 3x range, or with
2 for other codes. It already exits with 1 upon any other error
(including parsing errors.)
Print the redirect code on 3x to stdout and the meta to stderr for
the 1x, 4x, 5x and 6x ranges.
2023-07-24 09:56:37 +00:00
Omar Polo
56d32bb51a
bump man date
2023-07-24 09:29:34 +00:00
Omar Polo
32b1638ebc
run tls_connect_socket() after dropping the "inet dns" pledge promises
2023-07-24 09:28:01 +00:00
Omar Polo
9888507cd4
read from stdin if no file is given
2023-07-24 09:28:01 +00:00
Omar Polo
bf9ca5e71c
sync changelog
2023-07-24 09:07:21 +00:00
Omar Polo
4acf495f41
open the log files inside the chroot
2023-07-24 09:05:33 +00:00
Omar Polo
3bda540e34
reopen log files upon SIGUSR2
2023-07-24 09:00:19 +00:00
Omar Polo
60b4efa1e2
add a test for the file logging
2023-07-24 08:51:35 +00:00