feat(searxng): 添加searxng配置文件

添加limiter.toml和settings.yml配置文件
修改volumes挂载路径以支持本地开发和数据持久化
This commit is contained in:
cnphpbb
2025-09-08 17:15:12 +08:00
parent b59fefc6bb
commit 02015b03c9
3 changed files with 18 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
# This configuration file updates the default configuration file
# See https://github.com/searxng/searxng/blob/master/searx/limiter.toml
[botdetection.ip_limit]
# activate advanced bot protection
# enable this when running the instance for a public usage on the internet
link_token = false

View File

@@ -0,0 +1,9 @@
# see https://docs.searxng.org/admin/settings/settings.html#settings-use-default-settings
use_default_settings: true
server:
# base_url is defined in the SEARXNG_BASE_URL environment variable, see .env and docker-compose.yml
secret_key: "ultrasecretkey" # change this!
limiter: false # enable this when running the instance for a public usage on the internet
image_proxy: true
redis:
url: redis://redis:6379/0

View File

@@ -29,7 +29,8 @@ services:
networks: networks:
- searxng - searxng
volumes: volumes:
- ${Volumes_PATH}/etc-searxng:/etc/searxng - ./searxng:/etc/searxng:rw
- ${Volumes_PATH}/searxng-data:/var/cache/searxng:rw
networks: networks:
searxng: searxng: