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
Omar Polo
226f13ece0
add ability to log to files with log access <path>
2023-07-24 08:50:49 +00:00
Omar Polo
3826d7de43
logger use dprintf and a fd instead of a FILE
...
simplifies further handling. The stdio layer introduces its own
buffering and for the logs I'd like to avoid it. fflush(3) is an
option, but using a raw fd and dprintf(2) requires less code.
2023-07-24 08:37:39 +00:00
Omar Polo
bf7a7fd7b2
sync changelog
2023-07-23 22:21:23 +00:00
Omar Polo
692a9f5fea
remove unused IMSG types
2023-07-23 21:43:18 +00:00
Omar Polo
45c946b37b
avoid use-after-free
2023-07-23 19:30:14 +00:00
Omar Polo
3d56cb5336
fix a reduce/reduce conflict
...
location -> error and locopt -> fastcgi -> error both end up with
a optnl that can be reduced to the empty string.
2023-07-23 19:11:09 +00:00
Omar Polo
60f4107da6
add a test with fastcgi, locations and forceful disabling
2023-07-23 19:04:53 +00:00
Omar Polo
6a8387e5f5
add `fastcgi off' to forceful skip fastcgi for a route
2023-07-23 19:04:37 +00:00
Omar Polo
fdd67729b4
adjust syntax in fastcgi test; add another test for the old syntax
2023-07-23 18:45:43 +00:00
Omar Polo
a1ba9650a9
revamp fastcgi configuration: make it per-location
...
this revamps the syntax in the configuration to better match httpd(8)
(and in general be less weird) and to allow per-location fastcgi
configurations.
the bare `param' is now deprecated, but for compatibility it acts
like `fastcgi param' would do now. Same story for `fastcgi <path>'.
2023-07-23 18:45:05 +00:00
Omar Polo
f36ba9be59
move struct envlist and alist up
2023-07-23 18:17:59 +00:00
Omar Polo
0995ecdb87
plug memleak
2023-07-23 17:43:27 +00:00
Omar Polo
cf35bdce9a
add titan to .gitignore
2023-07-23 17:18:04 +00:00
Omar Polo
88c03474f8
revert previous
...
Somehow the compat for __dead is not working properly on macos
(cirrus ci) since it complains that parse_debug() does not return
a value in all control paths when it uses usage() (marked as __dead)
to catch a wrong usage.
2023-07-23 14:13:23 +00:00
Omar Polo
67ae3d8e03
use __dead instead of __attribute__((noreturn))
2023-07-22 16:08:21 +00:00
Omar Polo
da3fc66ee8
titan: add compat shims to compile on !OpenBSD
2023-07-22 15:50:22 +00:00
Omar Polo
800aa93c05
gg: warn when the TLS layer is not closed properly
...
various servers are not handling correctly the close notify so for
the moment don't turn this into an hard error but just warn.
Hopefully, given some time, most servers will be fixed.
while here, drop the gotos and just use a break to exit the main
loop.
2023-07-22 15:47:07 +00:00
Omar Polo
2ff1e2a923
add titan(1) -- a draft titan client
2023-07-22 15:47:02 +00:00
Omar Polo
81bab00246
split out iri.h from gmid.h
2023-07-22 13:49:07 +00:00
Omar Polo
6a996ec20f
fmt
2023-07-22 08:19:26 +00:00
Omar Polo
bd23307690
drop engine support
2023-07-22 08:17:02 +00:00
Omar Polo
21617eda73
remove the useless logging methods
...
it makes more clear where the magic is. adapted from the smtpd'
ca.c diff.
2023-07-22 08:13:15 +00:00
Omar Polo
5d2f4b1611
add compat for endian (now required by imsg)
2023-07-02 09:14:44 +00:00
Omar Polo
c9c44c6571
update imsg
2023-07-02 08:55:38 +00:00
Omar Polo
71b02f6390
rename do_accept() -> server_accept()
2023-07-01 22:00:08 +00:00