summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-08-07[fix] webapp.py: default_http_headers not parsed as strings (#5094)Bnyro
WhiteNoise requires all headers to be strings, however it's common to use other primitive types (e.g. numbers) in the header, e.g. `X-XSS-Protection: 0`. Thus, we must convert all types of values (i.e. numbers) to strings. - closes https://github.com/searxng/searxng/issues/5091
2025-08-07[fix] ci: cache is not overwritten (#5089)Ivan Gabaldon
Due to current limitations of `actions/cache`, the cache cannot be overwritten. In our case, we need to accumulate cached wheels from different architectures. To solve this, we simply delete the key before storing the cache again.
2025-08-07[enh] container: tidy builds (#5086)Ivan Gabaldon
Building the container currently does not work properly. When rebuilding several times with `make container`, `version_frozen.py` is recreated, which wouldn't be an issue if the file’s timestamp was constant. Now, when creating `version_frozen.py`, it will have the same timestamp as the commit when it was created. (`version_frozen.py` is moved to a dedicated layer). Reusing "builder" cache when building "dist" could be slow (CD reports 2 seconds, but locally I've seen it take up to 10 seconds), so the Dockerfile is now split and we save a couple steps by importing the "builder" image directly. The last changes made it possible to remove the layer cache in "builder", since the overhead is now greater than building the layers from scratch. Until now, all "dist" layers were squashed into a single layer, which in most cases is a good idea (except for storage/delivery pricing/overhead), but in our case, since we manage the entire pipeline, we can ignore this and share layers between builds. This means (for example) that if we change files unrelated to the container in several consecutive commits (documentation changes), we don't have to push the entire image to registry, but only the different layers (`version_frozen.py` in this example). The same applies when pulling, as only the layers that have changed compared to the local layers will be downloaded (that's the theory, we'll see if this works as expected or if we need to tweak something else).
2025-08-06[feat] duckduckgo weather: migrate to new weather engine templateBnyro
- not 100% sure about the condition code mapping, there are no real matches for most of the codes from Apple WeatherKit to the weather codes we have in SearXNG - related: https://github.com/searxng/searxng/issues/4885
2025-08-03[fix] engine yummly: website were taken offline in December 2024 (#5080)Markus Heiser
The app and website were taken offline in December 2024, with the latter pointing to KitchenAid's US website. [1] [1] https://en.wikipedia.org/wiki/Yummly Closes: https://github.com/searxng/searxng/issues/5079
2025-08-01[enh] container: latest tag should be last (#5078)Ivan Gabaldon
With this change, the "latest" tag will be visually higher (on registry tag list). Right now, it appears under the "DOCKER_TAG" manifest tag, which can be confusing.
2025-08-01[fix] CI task "update_engine_traits.py" fails (#5069)Markus Heiser
* [fix] CI task "update_engine_traits.py" fails To catch all problems with an HTTP request, the more general class ``httpx.HTTPError`` must be caught, for your test use:: $ ./manage dev.env $ python ./searxng_extra/update/update_engine_traits.py Closes: https://github.com/searxng/searxng/issues/5068 * [data] update searx.data - update_engine_traits.py
2025-08-01[upd] pypi: Bump the minor group with 2 updates (#5077)dependabot[bot]
* [upd] pypi: Bump the minor group with 2 updates Bumps the minor group with 2 updates: [granian[reload]](https://github.com/emmett-framework/granian) and [granian](https://github.com/emmett-framework/granian). Updates `granian[reload]` from 2.4.2 to 2.5.0 - [Release notes](https://github.com/emmett-framework/granian/releases) - [Commits](https://github.com/emmett-framework/granian/compare/v2.4.2...v2.5.0) Updates `granian` from 2.4.2 to 2.5.0 - [Release notes](https://github.com/emmett-framework/granian/releases) - [Commits](https://github.com/emmett-framework/granian/compare/v2.4.2...v2.5.0) --- updated-dependencies: - dependency-name: granian[reload] dependency-version: 2.5.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: granian dependency-version: 2.5.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor ... Signed-off-by: dependabot[bot] <support@github.com> * [enh] py: use humanized duration --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ivan Gabaldon <igabaldon@inetol.net>
2025-08-01[l10n] update translations from Weblate (#5076)github-actions[bot]
17e9fcd68 - 2025-07-29 - musabustun <musabustun@noreply.codeberg.org> 90b302e3e - 2025-07-29 - return42 <return42@noreply.codeberg.org> 023a22292 - 2025-07-29 - return42 <return42@noreply.codeberg.org> 17d37ede6 - 2025-07-30 - gkalathas <gkalathas@noreply.codeberg.org> 3c64c165f - 2025-07-29 - return42 <return42@noreply.codeberg.org> d8f65cdc7 - 2025-07-26 - IcewindX <icewindx@noreply.codeberg.org>
2025-07-31[feat] statistics answerer: add the ability to calculate the range of a setbenpiano800
2025-07-29[test] calculator plugin: report the DeprecationWarning once (#5070)Markus Heiser
Reporting the DeprecationWarning once should be sufficient when running tests.
2025-07-29[data] update searx.data - update_wikidata_units.py (#5062)github-actions[bot]
2025-07-29[data] update searx.data - update_external_bangs.py (#5061)github-actions[bot]
2025-07-29[data] update searx.data - update_ahmia_blacklist.py (#5064)github-actions[bot]
2025-07-29[data] update searx.data - update_currencies.py (#5065)github-actions[bot]
2025-07-29[data] update searx.data - update_engine_descriptions.py (#5066)github-actions[bot]
2025-07-29[data] update searx.data - update_firefox_version.py (#5063)github-actions[bot]
Co-authored-by: searxng-bot <searxng-bot@users.noreply.github.com>
2025-07-28[fix] duckduckgo engine: logger.error / missing argument (#5057)Markus Heiser
The error message in case the vqd value could not be determined was incorrect and triggered an exception:: File "/usr/local/searxng/searxng-src/searx/engines/duckduckgo.py", line 132, in get_vqd logger.error("vqd value from duckduckgo.com ", resp.status_code) Message: 'vqd value from duckduckgo.com ' Arguments: (202,)
2025-07-28[fix] NotImplementedError raised by ResultContainer (#5058)Markus Heiser
If the ``on_result`` handle returns False, then the ``else`` was always jumped to, which throws the NotImplementedError exception:: File "/usr/local/searxng/searxng-src/searx/results.py", line 99, in extend raise NotImplementedError(f"no handler implemented to process the result of type {result}") NotImplementedError: no handler implemented to process the result of type MainResult(title=...
2025-07-28[upd] update to gecko driver v36Markus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2025-07-28[fix] apply shell formating / shfmt (make format.shell)Markus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2025-07-28[fix] don't install pyright twice and do some clean upMarkus Heiser
Pyright has been installed twice so far, once via `package.json` and once in the test script via `npx --no-install`. Separating the type checks in the CI and on the developer desktop is also not necessary. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2025-07-28[enh] CI - add shell script formatterMarkus Heiser
Implement rules and functions to format shell scripts: $ make format.shell or alternatively to format all source code: $ make format The formatter `shfmt` reads the rules from the editorconfig[1] If any EditorConfig files are found, they will be used to apply formatting options. If any parser or printer flags are given to the tool, no EditorConfig files will be used. [1] https://github.com/patrickvane/shfmt?tab=readme-ov-file#description Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2025-07-28[mod] dependabot: add searxng.org/devtools from Go and Node.jsMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2025-07-28[mod] create a Go project with the developer tools from GoMarkus Heiser
The `go.mod` was created by:: $ ./manage dev.env (dev.env)$ go mod init searxng.org/devtools (dev.env)$ go get -tool mvdan.cc/sh/v3/cmd/shfmt@v3.12.0 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2025-07-28[mod] add Golang ecosystem to the SearXNG toolchainMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2025-07-28[chore] overdue maintenance of shell scriptsMarkus Heiser
Removes obsolete scripts and fix various leftovers. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2025-07-28[fix] tracker pattern: let startup continue if url fetch fails (#5055)mggh0139
Use Python exception to prevent startup crash in case of fetch ClearURL failure. Also add some logs. Closes: https://github.com/searxng/searxng/issues/5054
2025-07-27[fix] correct comment in settings.yml for value to disable scheduling (#5052)Fjara
settings.yml correct value to disable scheduling
2025-07-26[fix] webapp.py: info (and other) page(s) don't load properly (#5051)Bnyro
2025-07-26[fix] cleanup: rename `searx` leftovers to `SearXNG` (#5049)Markus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2025-07-25[fix] google video: refactor broken engine to work againSeriousConcept1134
The current google_videos.py in the master branch is completely non functional, due to it not parsing the returned video search results correctly. The result is searxng saying that no results were found. This commit is a new updated google_videos.py that's designed to fix that and is confirmed to be working. Implementing the suggestions by Bnyro. Re-formatted with `black` for compatibility. After failing automated checks, ran the command: black --line-length 120 --skip-string-normalization --target-version py311 google_videos.py
2025-07-25[mod] make run: start granian server and versioning by Dependabot (#5037)Markus Heiser
The new ``requirements-server.txt`` (granian) is installed into the virtualenv of Dockerfile. When ``make run`` is called, a granian server is started with auto reload on application's files changes / requires granian[reload] extra, see ``requirements-dev.txt``. Dependabot supports updates to any ``.txt`` file [1]. [1] https://docs.github.com/en/code-security/dependabot/ecosystems-supported-by-dependabot/supported-ecosystems-and-repositories#pip-and-pip-compile Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2025-07-25[l10n] update translations from Weblate (#5047)github-actions[bot]
19de4a735 - 2025-07-23 - eudemo <eudemo@noreply.codeberg.org> 4504f8600 - 2025-07-22 - IcewindX <icewindx@noreply.codeberg.org> 2b4ec6d2c - 2025-07-22 - lucasmz.dev <lucasmz.dev@noreply.codeberg.org> 69b3590de - 2025-07-22 - Fjuro <fjuro@alius.cz> f48c7b9ac - 2025-07-21 - alexgabi <alexgabi@noreply.codeberg.org> f8bc97254 - 2025-07-21 - alexgabi <alexgabi@noreply.codeberg.org> 7bd4b6441 - 2025-07-21 - Juno Takano <jutty@noreply.codeberg.org> 527bc690c - 2025-07-20 - 0ko <0ko@noreply.codeberg.org> dd242f579 - 2025-07-20 - IcewindX <icewindx@noreply.codeberg.org> f2a3cdb26 - 2025-07-19 - ledjfou <ledjfou@noreply.codeberg.org> 6781d5611 - 2025-07-20 - alexgabi <alexgabi@noreply.codeberg.org> df82ea943 - 2025-07-18 - zbbhzdaajc <zbbhzdaajc@noreply.codeberg.org> 7892aac02 - 2025-07-18 - Priit Jõerüüt <jrtcdbrg@noreply.codeberg.org>
2025-07-24[fix] false is an invalid value for wiki_url in settings.yml (#5046)Markus Heiser
Closes: https://github.com/searxng/searxng/issues/5045
2025-07-24[fix] py: absolute static path (#5043)Ivan Gabaldon
The path to static should be relative (If sxng is served under "/sxng", the static route passed to the client won't be "/sxng/static/..." as expected but "/static/...") Closes https://github.com/searxng/searxng/issues/5042
2025-07-24[mod] wordnik: convert to answerer (#4980)Bnyro
Wordnik is now an answerer and not in the infobox anymore: it uses the translations answerer, because it provides all the features needed. By default, only its first results is shown Additionally a new "define" category is added - I know, it's the same as the "dictionaries" category, but I don't think we can alias categories. This allows to search e.g. for `!define tree`, the idea is to allow easy searches for definitions of words. Related: - https://github.com/searxng/searxng/issues/4111
2025-07-23[fix] py: restore `application` for uWSGI (#5040)Ivan Gabaldon
Was removed on https://github.com/searxng/searxng/pull/5032
2025-07-23[fix] py: overwrite version_frozen on explicit freeze (#5020)Ivan Gabaldon
Once version_frozen.py has been created, it will never be updated again unless the file is manually deleted.
2025-07-23[enh] py: whitenoise for static handling (#5032)Ivan Gabaldon
While looking at ways to better handle static files, I saw a package that replaces Flask `static_folder` functionality. Not only it's considerably faster, but already includes the capability to serve sidecars without having to intercept. This also replaces the uWSGI folder mapping functionality. Closes https://github.com/searxng/searxng/issues/4977
2025-07-22[fix] tracker url remover + external bangs: use standard network configBnyro
Using plain `httpx` directly doesn't use SearXNG's additional network config, including proxies, http2 config, ... Related issues: - https://github.com/searxng/searxng/issues/5027
2025-07-19[fix] container: remove static path mount (#5006)Ivan Gabaldon
I've seen that by default Granian sets a `Cache-Control` header for 1 day IF `GRANIAN_STATIC_PATH_MOUNT` is set. This option is not a hard requirement, but it's set because I found to be faster when serving the static files. Another thing is that by removing `GRANIAN_STATIC_PATH_MOUNT`, the headers set by the application are present again in the static files, which was not the case before. Related https://github.com/searxng/searxng/pull/5004
2025-07-19[l10n] update translations from Weblate (#5023)github-actions[bot]
fce853a65 - 2025-07-16 - return42 <return42@noreply.codeberg.org> 234a91155 - 2025-07-16 - return42 <return42@noreply.codeberg.org> 162ff0369 - 2025-07-16 - return42 <return42@noreply.codeberg.org> 3307e81ab - 2025-07-16 - return42 <return42@noreply.codeberg.org> 7948181fb - 2025-07-15 - Juno Takano <jutty@noreply.codeberg.org> e88a0b264 - 2025-07-15 - muha7a <muha7a@noreply.codeberg.org> 7b37b944e - 2025-07-14 - Cookie_Monster <cookie_monster@noreply.codeberg.org> d6c61f1ff - 2025-07-14 - kolegacik <kolegacik@noreply.codeberg.org> 5bd662542 - 2025-07-15 - lucasmz.dev <lucasmz.dev@noreply.codeberg.org> 4ddad097c - 2025-07-14 - yoonhahwang <yoonhahwang@noreply.codeberg.org> a8d319c18 - 2025-07-13 - norizou <norizou@noreply.codeberg.org> e7e471f65 - 2025-07-13 - Hēphaistos <hephaistos@noreply.codeberg.org> b6b198f0a - 2025-07-12 - return42 <return42@noreply.codeberg.org> 9da60d355 - 2025-07-11 - sourdragon <sourdragon@noreply.codeberg.org> 632b879ba - 2025-07-12 - return42 <return42@noreply.codeberg.org> a543b2b87 - 2025-07-12 - return42 <return42@noreply.codeberg.org> 7e418d9cc - 2025-07-12 - return42 <return42@noreply.codeberg.org> 6e78fbd5c - 2025-07-12 - return42 <return42@noreply.codeberg.org> 917b27bad - 2025-07-12 - return42 <return42@noreply.codeberg.org> 82e69afbf - 2025-07-12 - return42 <return42@noreply.codeberg.org> 096c36ef7 - 2025-07-12 - return42 <return42@noreply.codeberg.org> 2048ef8e2 - 2025-07-12 - return42 <return42@noreply.codeberg.org> Co-authored-by: searxng-bot <searxng-bot@users.noreply.github.com>
2025-07-18[mod] py: don't append "-dirty" to DOCKER_TAG (#5021)Ivan Gabaldon
We don't expect tags to have "-dirty", just the GIT_VERSION regardless of how the container is built.
2025-07-18[upd] pypi: Bump certifi from 2025.7.9 to 2025.7.14 in the minor group (#5022)dependabot[bot]
Bumps the minor group with 1 update: [certifi](https://github.com/certifi/python-certifi). Updates `certifi` from 2025.7.9 to 2025.7.14 - [Commits](https://github.com/certifi/python-certifi/compare/2025.07.09...2025.07.14) --- updated-dependencies: - dependency-name: certifi dependency-version: 2025.7.14 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-17[fix] calculator plugin: filtering real calculation tasks (#5016)Markus Heiser
Whether the query is a real calculation tasks is currently only detected in the AST, resulting in unnecessary creatins of subprocesses. This problem is mitigated with this patch: if the query contains letters, it is obviously not a math problem, and the plugin can return without further action. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2025-07-16[fix] custom `plugins:` settings must not be merged.Markus Heiser
In customizing it should be decided which plugin modules should be loaded and which should not. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2025-07-16[build] /staticmrpaulblack
2025-07-16[fix] simple theme: display image detail view fullscreen on landscape phonesmrpaulblack
2025-07-11[mod] container: remove `Cache-Control` header (#5005)Ivan Gabaldon
Granian shouldn't actually handle the cache, we leave that to the upstream proxy. Related https://github.com/searxng/searxng/pull/5004