From 02015b03c91162356639c784ac4301068799ef95 Mon Sep 17 00:00:00 2001 From: cnphpbb Date: Mon, 8 Sep 2025 17:15:12 +0800 Subject: [PATCH] =?UTF-8?q?feat(searxng):=20=E6=B7=BB=E5=8A=A0searxng?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加limiter.toml和settings.yml配置文件 修改volumes挂载路径以支持本地开发和数据持久化 --- searxng/etc/searxng/limiter.toml | 7 +++++++ searxng/etc/searxng/settings.yml | 9 +++++++++ searxng/searxng.stack.yml | 3 ++- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 searxng/etc/searxng/limiter.toml create mode 100644 searxng/etc/searxng/settings.yml diff --git a/searxng/etc/searxng/limiter.toml b/searxng/etc/searxng/limiter.toml new file mode 100644 index 0000000..f48603c --- /dev/null +++ b/searxng/etc/searxng/limiter.toml @@ -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 \ No newline at end of file diff --git a/searxng/etc/searxng/settings.yml b/searxng/etc/searxng/settings.yml new file mode 100644 index 0000000..68f5b3b --- /dev/null +++ b/searxng/etc/searxng/settings.yml @@ -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 \ No newline at end of file diff --git a/searxng/searxng.stack.yml b/searxng/searxng.stack.yml index f3d408e..814cbfb 100644 --- a/searxng/searxng.stack.yml +++ b/searxng/searxng.stack.yml @@ -29,7 +29,8 @@ services: networks: - searxng volumes: - - ${Volumes_PATH}/etc-searxng:/etc/searxng + - ./searxng:/etc/searxng:rw + - ${Volumes_PATH}/searxng-data:/var/cache/searxng:rw networks: searxng: \ No newline at end of file