From f76dba442195b3dbd2ea1474a9485077fc39899d Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 5 May 2025 12:23:22 +0000 Subject: [PATCH] Bug 39789: Display the trusted proxy IP addresses and reverse proxy IP header on about page Signed-off-by: Lin Wei Li --- about.pl | 2 ++ koha-tmpl/intranet-tmpl/prog/en/modules/about.tt | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/about.pl b/about.pl index 93532d1b0f8..72e4cfe90bb 100755 --- a/about.pl +++ b/about.pl @@ -180,6 +180,8 @@ if ( $tab eq 'about' ) { mysqlVersion => $versions{'mysqlVersion'}, apacheVersion => $versions{'apacheVersion'}, memcached_running => Koha::Caches->get_instance->memcached_cache, + reverse_proxy_ip_header => C4::Context->config('reverse_proxy_ip_header'), + koha_trusted_proxies => C4::Context->config('koha_trusted_proxies'), ); } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt index 2ff35d710a4..397befda714 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt @@ -264,6 +264,14 @@ [% END %] + + Trusted proxy IP addresses + [% koha_trusted_proxies | html %] + + + Reverse proxy IP header + [% reverse_proxy_ip_header | html %] + [% END # tab=about %] [% END %] -- 2.39.5 (Apple Git-154)