Bug 39789: Display the trusted proxy IP addresses and reverse proxy IP header on about page

Signed-off-by: Lin Wei Li <lin-wei.li@inLibro.com>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Kyle M Hall 2025-05-05 12:23:22 +00:00 committed by Lucas Gass
parent 13a4b44bc9
commit 1c6f0b2eae
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
2 changed files with 10 additions and 0 deletions

View File

@ -184,6 +184,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'),
);
}

View File

@ -308,6 +308,14 @@
[% END %]
</td>
</tr>
<tr>
<th scope="row">Trusted proxy IP addresses</th>
<td>[% koha_trusted_proxies | html %]</td>
</tr>
<tr>
<th scope="row">Reverse proxy IP header</th>
<td>[% reverse_proxy_ip_header | html %]</td>
</tr>
</table>
[% END # tab=about %]
[% END %]