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:
parent
a2ef7572cd
commit
89889fff5b
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue