Searx template - added variable set_real_ip when using additional reverse proxy (#54)

When using reverse rpoxy in front of searx and using limiter (or filtron) we need to be able to pass on client real ip.

Co-authored-by: muppeth <muppeth@disroot.org>
Reviewed-on: #54
Reviewed-by: meaz <meaz@no-reply@disroot.org>
This commit is contained in:
muppeth 2023-09-19 19:40:18 +00:00
parent a2ef7572cd
commit 89889fff5b
1 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,9 @@
{%block root %}
root {{ searx_app_dir }}/searx;
{% if item.real_ip_from is defined %}
set_real_ip_from {{ item.real_ip_from }};
{% endif %}
{% endblock %}
{% block location %}