searxng/utils
Ivan Gabaldon 01be2612ab
Some checks are pending
Documentation / Release (push) Waiting to run
Integration / Python 3.10 (push) Waiting to run
Integration / Python 3.11 (push) Waiting to run
Integration / Python 3.12 (push) Waiting to run
Integration / Python 3.13 (push) Waiting to run
Integration / Python 3.9 (push) Waiting to run
Integration / Theme (push) Waiting to run
[mod] container: replace uWSGI with Granian (#4820)
* [mod] container: replace uWSGI with Granian

The configuration in Granian is handled with ENVs, much more convenient and practical for updating. The settings have been tested for over two months in a production instance, being usable on small to somewhat large instances without having to modify anything.

It also removes the patch functions and ENVs abstraction from the entrypoint, this makes it possible to run the container with immutable configuration.

In some setups, It may be desired to have the volumes/files under a specific uid/gid (other than searxng:searxng), if the entrypoint has root permissions it will chown automatically on every start, which may not be desired. Explicitly setting the new ENV `FORCE_OWNERSHIP=false` will prevent ownership from being modified.

No manual migration is necessary **unless** the user has changed the default uWSGI configuration or has a very specific setup.

Closes https://github.com/searxng/searxng/issues/4894
Closes https://github.com/searxng/searxng/issues/4818
Closes https://github.com/searxng/searxng/issues/4802

Supersedes https://github.com/searxng/searxng/pull/4596

Related https://github.com/searxng/searxng/discussions/4479

* [mod] docs: add container/granian

All container documentation has been recreated.

A new documentation page has been created for Granian.

* [enh] misc: apply suggestions

Minor documentation changes.

Suggested https://github.com/searxng/searxng/pull/4820#discussion_r2134539259
Suggested https://github.com/searxng/searxng/pull/4820#discussion_r2134538610
Suggested https://github.com/searxng/searxng/pull/4820#discussion_r2134827964
Suggested https://github.com/searxng/searxng/pull/4820#discussion_r2134544300
Suggested https://github.com/searxng/searxng/pull/4820#discussion_r2149387388

---------

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Co-authored-by: Ivan Gabaldon <igabaldon@inetol.net>
Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
2025-07-04 14:35:28 +02:00
..
templates [enh] tidy: clean old morty, filtron, searx references 2025-05-13 10:37:02 +02:00
brand.sh [mod] get rid of ./utils/brand.env and its workflow 2024-01-09 16:31:19 +01:00
get_setting.py [mod] get rid of ./utils/brand.env and its workflow 2024-01-09 16:31:19 +01:00
lib.sh [chore] fix some docstring typos (#4815) 2025-05-20 21:03:54 +02:00
lib_go.sh [chore] *: fix typos detected by typos-cli 2024-11-24 12:41:57 +01:00
lib_nvm.sh [chore] *: fix typos detected by typos-cli 2024-11-24 12:41:57 +01:00
lib_redis.sh [utils/searxng.sh] implement new script to install SearXNG 2022-07-30 13:39:35 +02:00
lib_sxng_container.sh [mod] container: replace uWSGI with Granian (#4820) 2025-07-04 14:35:28 +02:00
lib_sxng_data.sh [fix] wikidata: increase wikidata queries timeout 2025-03-01 12:21:29 +01:00
lib_sxng_node.sh [fix] static.build: upgrade min. node version to 18.17 2025-03-18 06:19:44 +01:00
lib_sxng_static.sh [mod] theme/simple: improve fmt/lint tech 2025-07-03 17:35:05 +02:00
lib_sxng_test.sh [refactor] typification of SearXNG (initial) / result items (part 1) 2025-01-28 07:07:08 +01:00
lib_sxng_themes.sh [mod] theme/simple: improve fmt/lint tech 2025-07-03 17:35:05 +02:00
lib_sxng_vite.sh [mod] theme/simple: improve fmt/lint tech 2025-07-03 17:35:05 +02:00
lib_sxng_weblate.sh [mod] CI: tag commits with leading scope/type of the modification 2024-03-09 12:17:23 +01:00
lxc-searxng.env [doc] update & fix documentation of the "SearXNG LXC suite" 2023-05-21 18:12:39 +02:00
lxc.sh [chore] *: fix typos detected by typos-cli 2024-11-24 12:41:57 +01:00
makefile.include [mod] replace makefile boilerplate by 'manage' script 2021-04-23 11:26:22 +02:00
makefile.lxc [mod] LXC_ENV_FOLDER moved from ./lxc to ./lxc-env 2020-12-26 11:43:18 +01:00
searxng.sh [fix] debian: install apt package python-is-python3 2025-06-25 08:29:57 +02:00
searxng_check.py [mod] pylint all files with one profile / drop PYLINT_SEARXNG_DISABLE_OPTION 2024-03-11 14:55:38 +01:00