aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-09-01one more typo from codespellHEADmasterOmar Polo
2024-09-01spell "nam" with the "e"; from codespellOmar Polo
2024-09-01typos; courtesy of codespellOmar Polo
2024-08-29improve failure log of test_log_*Omar Polo
2024-08-29add some tests for the different log stylesOmar Polo
2024-08-29fix timestamps in common and combined log stylesOmar Polo
Reported by Colin Henein, thank you! see <https://github.com/omar-polo/gmid/issues/39>
2024-08-25-current againOmar Polo
2024-08-25prepare release 2.1.12.1.1Omar Polo
2024-08-25typo; fix release numberOmar Polo
2024-08-24regress: hide REMOTE_{ADDR,HOST} tooOmar Polo
2024-08-24update the readmeOmar Polo
2024-08-24regress/fcgi: dump and check all the parametersOmar Polo
2024-08-24github: limit docker image builds to tags and the master branchOmar Polo
2024-08-24fix previous; no need to match_host for the aliasOmar Polo
The issue with the test was due to differences in upper/lower cased letters in the domain names. Normally these don't matter, and when decoding the IRI we lowercase, BUT the SNI can have upper-case letters and we preserve them as-is in `c->domain'.
2024-08-24no need for the match_host danceOmar Polo
2024-08-24improve testsOmar Polo
2024-08-24rework match_host(); fix alias handling; add two alias testsOmar Polo
2024-08-24fix config.log args loggingOmar Polo
2024-08-23work around comically tiny HOST_NAME_MAX on glibc systemOmar Polo
glibc is clearly violating POSIX since they set HOST_NAME_MAX to 64, and they've known so for years. Unfortunately this means that, despite using the right interfaces, we have to work around bugs in their libc. ugh. Luckily, gmid doesn't need to do DNS, it just needs a define large enough to store a hostname, but not unlimited, to catch possible misconfigurations. We don't risk to round-trip this into an interface that expects smaller strings. Reported and fix tested by Anna “CyberTailor”, see <https://codeberg.org/op/gmid/issues/3>.
2024-08-18fcgi-test: fix stale commentOmar Polo
2024-08-18sync changelogOmar Polo
2024-08-18fix: send port as SERVER_PORTChristoph Liebender
2024-08-05configure/getprogname: fix handling and use __progname tooOmar Polo
1. fix the handling of the fallbacks in getprogname i.e. actually use the fallback 2. add a check for __progname too See https://github.com/omar-polo/gmid/issues/35
2024-08-03-current againOmar Polo
2024-08-03prepare release 2.12.1Omar Polo
2024-08-03proxy-protocol: accept cross-family proxyingOmar Polo
Due to a strict interpretation of the spec if "TCP4" is used we expect two ipv4 addresses (and similar for "TCP6" and ipv6 addresses). However, the family specified in the proxy header matters only for the first address (the source), not the destination! After all, it's not strange to proxy from/to ipv4 and ipv6. Use getaddrinfo(NI_NUMERICHOST) to parse the IP addresses since inet_pton() is too strict.
2024-08-03remove unused argument from check_port_v1Omar Polo
2024-08-03sync changelogOmar Polo
2024-08-03gg: support IPv6 addresses in -POmar Polo
2024-08-03rewordOmar Polo
2024-08-03remove useless debugging logOmar Polo
2024-08-03main_reload: save and restore preforkOmar Polo
We only honour the prefork at startup time.
2024-08-03regress: fix quit()Omar Polo
2024-08-03regress: simplify code and fix commentOmar Polo
we're not running under `set -e' since a long time.
2024-08-03gmid.conf.5: some love for the EXAMPLES sectionOmar Polo
Few grammar and style fixes, plus add an example about logging on a file. Prodded by https://github.com/omar-polo/gmid/issues/34
2024-08-03add support for using the proxy protocol v1 when proxying tooOmar Polo
This is symmetrical to the support for *incoming* requests. The new regress case uses this to proxy to itself using the proxy-protocol v1. Fixes https://github.com/omar-polo/gmid/issues/31
2024-08-03regress: run the proxies on a different portOmar Polo
Soon we may want to run (some) proxies with the proxy-protocol so we can't reuse the same port.
2024-08-03proxy_init: simplify logicOmar Polo
2024-08-03regress: fix test_high_prefork()Omar Polo
we don't load the prefork dynamically, only the prefork at startup is honoured, so fix the test by stopping gmid so it is started with the right prefork.
2024-08-03fmtOmar Polo
2024-07-08change the type for read_posOmar Polo
2024-07-08proxy protocol v1: handle EOF and short readsOmar Polo
2024-07-08remove trailing whitespaces and extra bracesOmar Polo
2024-07-08move some variables to function scopeOmar Polo
2024-07-08fix left computationOmar Polo
2024-07-08no need to clear error before calling read(2)Omar Polo
There are only a few functions (so badly designed) that need to have errno cleared beforehand (hello, strtoll!). read(2) is not among these.
2024-07-08s/should_buffer/proxy_protoOmar Polo
2024-07-08fmtOmar Polo
2024-07-06remove debug logOmar Polo
2024-07-02gemexp: add -vOmar Polo