[Koha-devel] Useful fix for client IP address in plack.log for anyone running Koha behind a proxy
David Cook
dcook at prosentient.com.au
Fri Jun 9 06:22:44 CEST 2023
Hi all,
Koha::Middleware::RealIP gives you the real client IP address in the Koha
code when running Koha behind a proxy. However, I noticed that this real
client IP address wasn't showing up in plack.log, and it really started to
bug me.
I discovered that Koha::Middleware::SetEnv was compromising the flow of the
$env variable through the Plack middlewares, but I've fixed it:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33967
It was a crazy-making problem, but it was a very simple fix, and it will
make your plack.log files much more useful.
Simple yet comprehensive test plan too, so I hope that folk take a look at
it.
David Cook
Senior Software Engineer
Prosentient Systems
Suite 7.03
6a Glen St
Milsons Point NSW 2061
Australia
Office: 02 9212 0899
Online: 02 8005 0595
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20230609/bb5eb603/attachment.htm>
More information about the Koha-devel
mailing list