[Koha-bugs] [Bug 36304] Allow option to automatically trust cloudflare proxies

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 27 07:01:31 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36304

Nicholas van Oudtshoorn <vanoudt at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #163515|0                           |1
        is obsolete|                            |

--- Comment #4 from Nicholas van Oudtshoorn <vanoudt at gmail.com> ---
Created attachment 163973
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=163973&action=edit
Support for externally updated proxy lists

Thanks for the feedback, David!

It makes sense to move it into the koha-conf.xml file, and this updated patch
has done so. It includes a sample bash script that can be used to keep an
external list file up to date.  This can also easily be extended to
automatically update other providers, hence I have taken away the cloudflare
name, although cloudflare is referenced in a comment in koha-conf.xml

Currently, RealIP was re-generating the trusted_proxies list on every call to
get_real_ip. This patch also uses Koha's caching system to prevent reloading
from the config file and from the external list on every call, which should
speed things up just a little bit.

The sample bash script will restart koha-common if it is running, and also
clear the caches of all koha-instances.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list