From ef8f6470e0473a1548f175217aaa7b9346ce6973 Mon Sep 17 00:00:00 2001 From: Burak Emir Sezen Date: Wed, 22 Jul 2026 22:23:30 +0200 Subject: [PATCH] [fix] container: ignore invalid SEARXNG_PORT values (#6439) * [fix] container: ignore invalid SEARXNG_PORT values * add note --------- Co-authored-by: Ivan Gabaldon --- container/entrypoint.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/container/entrypoint.sh b/container/entrypoint.sh index 1ba87cc63..f97cc374a 100755 --- a/container/entrypoint.sh +++ b/container/entrypoint.sh @@ -112,6 +112,15 @@ if [ "$(id -u)" -eq 0 ]; then fi # ENVs aliases -export GRANIAN_PORT="${SEARXNG_PORT:-$GRANIAN_PORT}" +# https://github.com/searxng/searxng/issues/5934 +case "${SEARXNG_PORT:-}" in + '') ;; + *[!0-9]*) + unset SEARXNG_PORT + ;; + *) + export GRANIAN_PORT="$SEARXNG_PORT" + ;; +esac exec /usr/local/searxng/.venv/bin/granian searx.webapp:app