Speedup SearXNG

Signed-off-by: Tobias Manske <tobias.manske@mailbox.org>
This commit is contained in:
2022-06-20 07:23:16 +02:00
parent 12cf816e24
commit ebf86b70a5
4 changed files with 118 additions and 97 deletions

View File

@ -37,6 +37,23 @@ services:
- SETUID
- DAC_OVERRIDE
morty:
container_name: morty
image: dalf/morty
restart: always
command: -timeout 6 -ipv6
environment:
- MORTY_KEY={{ search.morty.key }}
- MORTY_ADDRESS=0.0.0.0:3030
labels:
- "traefik.enable=true"
- "traefik.http.routers.morty.rule=Host(`search.tobiasmanske.de`) && PathPrefix(`/morty`)"
- "traefik.http.routers.morty.entrypoints=websecure"
- "traefik.http.services.morty.loadbalancer.server.port=3030"
networks:
- gateway
- backend
networks:
gateway:
external: true

View File

@ -64,8 +64,6 @@ server:
X-Robots-Tag: noindex, nofollow
Referrer-Policy: no-referrer
{% raw %}
redis:
# https://redis-py.readthedocs.io/en/stable/connections.html#redis.client.Redis.from_url
url: redis://redis:6379/0
@ -105,11 +103,13 @@ ui:
# morty proxy the key is base64 encoded (keep the !!binary notation)
# Note: since commit af77ec3, morty accepts a base64 encoded key.
#
# result_proxy:
# url: http://127.0.0.1:3000/
# key: !!binary "your_morty_proxy_key"
# # [true|false] enable the "proxy" button next to each result
# proxify_results: true
result_proxy:
url: https://search.tobiasmanske.de:3030/
key: !!binary "{{ search.morty.key }}"
# [true|false] enable the "proxy" button next to each result
proxify_results: true
{% raw %}
# communication with search engines
#

View File

@ -4,7 +4,7 @@ uid = searxng
gid = searxng
# Number of workers (usually CPU count)
workers = %k
workers = 4
threads = 4
# The right granted on the created socket