https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42949
Martin Renvoize (ashimema) <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the|An optional response |Adds an optional complexity release notes|header, |score response header that |`x-complexity-score`, |enables per-endpoint rate |weights each OPAC request |limiting in things like |by how expensive its page |Cloudflare WAF Rate |is. A reverse proxy or WAF, |Limiting Rules. Heavy |such as Cloudflare Rate |endpoints (search results, |Limiting, can then throttle |AJAX) get higher scores so |heavy pages harder than |they consume more of a |light ones. The header is |client's rate limit budget. |off by default. | | |The feature is disabled by |Default weights: |default. To enable it, add |opac-search.pl 25, |this to the <config> |opac-detail.pl 20, |section of koha-conf.xml |opac-MARCdetail.pl 10, |and restart Plack: |opac-main.pl 1. | | | |**Configuration** |<complexity_score_header>1< |- `complexity_score_header` |/complexity_score_header> |(default: off) - set to 1 | |to send the header. |Then each OPAC path can be |- |configured by adding |`complexity_score_header_na |something like: |me` (optional, default: | |x-complexity-score) - the | |name of the header. |<complexity_score_weights> |- | |`complexity_score_weights` |<opac-search.pl>30</opac-se |(optional) - replaces the |arch.pl> |weight of any listed OPAC | |script. Scripts not listed |</complexity_score_weights> |keep their default: | | | |```xml | |<complexity_score_weights> | | | |<opac-search.pl>30</opac-se | |arch.pl> | |</complexity_score_weights> | |``` | | | |**To enable** | |1. Add | |`<complexity_score_header>1 | |</complexity_score_header>` | |to the `<config>` section | |of koha-conf.xml. | |2. Restart Plack. | -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
