From caf64f59e64fecd362ed5a1ffb983641525821d1 Mon Sep 17 00:00:00 2001 From: okxlin Date: Sun, 2 Jul 2023 17:29:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=B7=BB=E5=8A=A0searxng=E5=88=B0?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/searxng/2023.7.1-5720844f/.env.sample | 4 ++++ apps/searxng/2023.7.1-5720844f/data.yml | 24 +++++++++++++++++++ .../2023.7.1-5720844f/docker-compose.yml | 20 ++++++++++++++++ apps/searxng/{data.yml.bak => data.yml} | 2 +- 4 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 apps/searxng/2023.7.1-5720844f/.env.sample create mode 100644 apps/searxng/2023.7.1-5720844f/data.yml create mode 100644 apps/searxng/2023.7.1-5720844f/docker-compose.yml rename apps/searxng/{data.yml.bak => data.yml} (93%) diff --git a/apps/searxng/2023.7.1-5720844f/.env.sample b/apps/searxng/2023.7.1-5720844f/.env.sample new file mode 100644 index 00000000..ead5e2fd --- /dev/null +++ b/apps/searxng/2023.7.1-5720844f/.env.sample @@ -0,0 +1,4 @@ +CONTAINER_NAME="searxng" +PANEL_APP_PORT_HTTP="40032" +DATA_PATH="./data" +SEARXNG_EXTERNAL_URL="http://localhost:40032" diff --git a/apps/searxng/2023.7.1-5720844f/data.yml b/apps/searxng/2023.7.1-5720844f/data.yml new file mode 100644 index 00000000..1ad58568 --- /dev/null +++ b/apps/searxng/2023.7.1-5720844f/data.yml @@ -0,0 +1,24 @@ +additionalProperties: + formFields: + - default: 40032 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - default: ./data + edit: true + envKey: DATA_PATH + labelEn: Data folder path + labelZh: 数据文件夹路径 + required: true + type: text + - default: http://localhost:40032 + edit: true + envKey: SEARXNG_EXTERNAL_URL + labelEn: External URL + labelZh: 外部访问地址 + required: true + type: text \ No newline at end of file diff --git a/apps/searxng/2023.7.1-5720844f/docker-compose.yml b/apps/searxng/2023.7.1-5720844f/docker-compose.yml new file mode 100644 index 00000000..3f7051fe --- /dev/null +++ b/apps/searxng/2023.7.1-5720844f/docker-compose.yml @@ -0,0 +1,20 @@ +version: '3' +services: + searxng: + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:8080" + volumes: + - "${DATA_PATH}:/etc/searxng" + environment: + - BASE_URL=${SEARXNG_EXTERNAL_URL} + image: searxng/searxng:2023.7.1-5720844f + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true diff --git a/apps/searxng/data.yml.bak b/apps/searxng/data.yml similarity index 93% rename from apps/searxng/data.yml.bak rename to apps/searxng/data.yml index 29ff159f..c8a3b5bb 100644 --- a/apps/searxng/data.yml.bak +++ b/apps/searxng/data.yml @@ -5,7 +5,7 @@ title: 一个免费的互联网元聚合搜索引擎 type: 建站 description: 一个免费的互联网元聚合搜索引擎 additionalProperties: - key: SearXNG + key: searxng name: SearXNG tags: - WebSite