From ef0eda9bf70ab48d470a3881e1a67095120678af Mon Sep 17 00:00:00 2001 From: okxlin Date: Sun, 2 Jul 2023 17:08:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=B7=BB=E5=8A=A0searxng=E5=88=B0?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/searxng/README.md | 82 +++++++++++++++++++++++++ apps/searxng/data.yml.bak | 20 ++++++ apps/searxng/latest/.env.sample | 4 ++ apps/searxng/latest/data.yml | 24 ++++++++ apps/searxng/latest/docker-compose.yml | 20 ++++++ apps/searxng/logo.png | Bin 0 -> 4532 bytes 6 files changed, 150 insertions(+) create mode 100644 apps/searxng/README.md create mode 100644 apps/searxng/data.yml.bak create mode 100644 apps/searxng/latest/.env.sample create mode 100644 apps/searxng/latest/data.yml create mode 100644 apps/searxng/latest/docker-compose.yml create mode 100644 apps/searxng/logo.png diff --git a/apps/searxng/README.md b/apps/searxng/README.md new file mode 100644 index 00000000..5cc63a14 --- /dev/null +++ b/apps/searxng/README.md @@ -0,0 +1,82 @@ +------------------------------------------------------------------------ + +SearXNGlogo + +------------------------------------------------------------------------ + +Privacy-respecting, hackable [meta search engine](https://en.wikipedia.org/wiki/Metasearch_engine) + +[Searx.space](https://searx.space) lists ready-to-use running instances. + +A [user](https://docs.searxng.org/user),[admin](https://docs.searxng.org/admin) and[developer](https://docs.searxng.org/dev) handbook is available on the[homepage](https://docs.searxng.org/). + +[![SearXNG +install](https://img.shields.io/badge/-install-blue)](https://docs.searxng.org/admin/installation.html) [![SearXNG +homepage](https://img.shields.io/badge/-homepage-blue)](https://docs.searxng.org/) [![SearXNGwiki](https://img.shields.io/badge/-wiki-blue)](https://github.com/searxng/searxng/wiki) [![AGPLLicense](https://img.shields.io/badge/license-AGPL-blue.svg)](https://github.com/searxng/searxng/blob/master/LICENSE) [![Issues](https://img.shields.io/github/issues/searxng/searxng?color=yellow&label=issues)](https://github.com/searxng/searxng/issues) [![commits](https://img.shields.io/github/commit-activity/y/searxng/searxng?color=yellow&label=commits)](https://github.com/searxng/searxng/commits/master) [![weblate](https://translate.codeberg.org/widgets/searxng/-/searxng/svg-badge.svg)](https://translate.codeberg.org/projects/searxng/) SearXNGlogo + + +------------------------------------------------------------------------ + +# Contact + +Ask questions or just chat about SearXNG on + +IRC + + [#searxng on libera.chat](https://web.libera.chat/?channel=#searxng) which is bridged to Matrix. + +Matrix + + [#searxng:matrix.org](https://matrix.to/#/#searxng:matrix.org) + +# Differences to searx + +SearXNG is a fork of [searx](https://github.com/searx/searx), with notable changes: + +## User experience + +- Reworked (and still simple) theme: + - Usable on desktop, tablet and mobile. + - Light and dark versions (available in the preferences). + - Right-to-left language support. + - [Screenshots](https://dev.searxng.org/screenshots.html) +- The translations are up to date, you can contribute on [Weblate](https://translate.codeberg.org/projects/searxng/searxng/) +- The preferences page has been updated: + - Browse which engines are reliable or not. + - Engines are grouped inside each tab. + - Each engine has a description. +- Thanks to the anonymous metrics, it is easier to report malfunctioning engines, so they get fixed quicker + - [Turn off metrics on the server](https://docs.searxng.org/admin/engines/settings.html#general)if you don\'t want them recorded. +- Administrators can [block and/or replace the URLs in the search results](https://github.com/searxng/searxng/blob/5c1c0817c3996c5670a545d05831d234d21e6217/searx/settings.yml#L191-L199) + +## Setup + +- No need for [Morty](https://github.com/asciimoo/morty) to proxy images, even on a public instance. +- No need for [Filtron](https://github.com/searxng/filtron) to block bots, as there is now a built-in [limiter](https://docs.searxng.org/src/searx.plugins.limiter.html). +- A well maintained [Dockerimage](https://github.com/searxng/searxng-docker), now also built for ARM64 and ARM/v7 architectures. (Alternatively there are up to date installation scripts.) + +## Contributing + +- Readable debug log. +- Contributing is easier, thanks to the [Development Quickstart](https://docs.searxng.org/dev/quickstart.html) guide. +- A lot of code cleanup and bugfixes. +- Up to date list dependencies. + +# Translations + +Help translate SearXNG at [Weblate](https://translate.codeberg.org/projects/searxng/searxng/) + +![](https://translate.codeberg.org/widgets/searxng/-/multi-auto.svg) + +# Codespaces + +You can contribute from your browser using [GitHub Codespaces](https://docs.github.com/en/codespaces/overview): + +- Fork the repository +- Click on the `<> Code` green button +- Click on the `Codespaces` tab instead of `Local` +- Click on `Create codespace on master` +- VSCode is going to start in the browser +- Wait for `git pull && make install` to appears and then to disapear +- You have [120 hours per month](https://github.com/settings/billing)(see also your [list of existing Codespaces](https://github.com/codespaces)) +- You can start SearXNG using `make run` in the terminal or by pressing `Ctrl+Shift+B`. diff --git a/apps/searxng/data.yml.bak b/apps/searxng/data.yml.bak new file mode 100644 index 00000000..29ff159f --- /dev/null +++ b/apps/searxng/data.yml.bak @@ -0,0 +1,20 @@ +name: SearXNG +tags: + - 建站 +title: 一个免费的互联网元聚合搜索引擎 +type: 建站 +description: 一个免费的互联网元聚合搜索引擎 +additionalProperties: + key: SearXNG + name: SearXNG + tags: + - WebSite + shortDescZh: 一个免费的互联网元聚合搜索引擎 + shortDescEn: A free internet meta-aggregator search engine + type: website + crossVersionUpdate: true + limit: 0 + recommend: 0 + website: https://github.com/searxng/searxng + github: https://github.com/searxng/searxng + document: https://docs.searxng.org/ diff --git a/apps/searxng/latest/.env.sample b/apps/searxng/latest/.env.sample new file mode 100644 index 00000000..ead5e2fd --- /dev/null +++ b/apps/searxng/latest/.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/latest/data.yml b/apps/searxng/latest/data.yml new file mode 100644 index 00000000..1ad58568 --- /dev/null +++ b/apps/searxng/latest/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/latest/docker-compose.yml b/apps/searxng/latest/docker-compose.yml new file mode 100644 index 00000000..be11f5e5 --- /dev/null +++ b/apps/searxng/latest/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:latest + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true diff --git a/apps/searxng/logo.png b/apps/searxng/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..3eeefdc8384f9469a274d7742ab24bdad54dbd95 GIT binary patch literal 4532 zcmeHL_ct5v_m5o-wJD0&MXFSdw>?5tt=fAuR@Ej-jf9WYQlWNHqiV;9J&J0IlA2YN zHmRy02+|rA@$o+2zu^1(=ZE{;bMAT0bIyI;`#P`Z-lvx4cUUhATm}FDtapteRu{hg zU%SM3acX^HymjH2LyR560RVaNe~l*UjZP#0z~OTjqGuCTvQrY%?rsPh)yZMkH}+#^ zDKt^m(*^&k$W1Kt-cQIpmgQ!_K#awmI27N>ON7SGbG2f0IcL)7fl0~vv9qo~V5pxMRXM!&+UqSNHXR7@Z+g9E} zz;^C+5oS|=e~daDu*c;=Fy5EKJ7*Jf5Ec?IW4Vv-TMxQs(3wAXIkza!D@T!oX|9Q_ zZ>7)tm_l@=z{?nf(UWDiyz42uCU2xC$-$n{7UoKwkC1-@EN_nbnl02|dY{l6H|!A8k6Kb$R-( zYBLRQvb*kPB^Vn%#Gq^|m70eZ`Ep`GD=oe2oLCs&dKyV{7;yFLZx6vPQDuW><8SQk zA%c5dH%|Rl-w)Y?v<=GA1O7hHnN;zFlC>mQ=7!m*7LKBy#2#iv^-^rD| zG^-8=?UiD*8W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