Update searx to include limiter unstead of filtron #32

Merged
meaz merged 5 commits from searx_redis into master 2022-11-15 17:18:44 +01:00
Showing only changes of commit c0c4c92c14 - Show all commits

View file

@ -6,22 +6,19 @@
{% block location %}
location / {
{% if item.filtron == 'true' %}
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_pass http://127.0.0.1:4004/;
{% elif item.limiter == 'true' %}
proxy_set_header Host $http_host;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
{% if searx_limiter == 'true' or searx_filtron == 'true' %}
proxy_pass {{ item.upstream_proto }}://{{ item.upstream_name }}:{{ item.upstream_port }};
{% endif %}
{% if item.limiter == 'true' %}
proxy_set_header Connection $http_connection;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Script-Name /{{ searx_app_dir }};
proxy_set_header X-Script-Name {{ searx_app_dir }};
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8888/;
{% else %}
include uwsgi_params;
uwsgi_pass unix:/run/uwsgi/app/searx/socket;
{% endif %}
}
{% endblock %}
{% endblock %}