Skip to content

Commit a19f9f4

Browse files
committed
searxng: set GRANIAN_HOST + GRANIAN_PORT (the actual env granian reads)
Verified live 2026-05-11: searxng entrypoint runs granian which reads GRANIAN_HOST/_PORT, not BIND_ADDRESS/SEARXNG_BIND_ADDRESS. Adding those env vars makes granian bind 0.0.0.0:8888 explicitly so WSL2's localhostForwarding picks it up and Windows-side localhost:8888 reaches the metasearch UI.
1 parent e37385b commit a19f9f4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

etc/containers/systemd/mios-searxng.container

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ Environment=SEARXNG_BASE_URL=http://localhost:${MIOS_PORT_SEARXNG:-8888}/
7575
# work via PublishPort= forwarding to 8888.
7676
Environment=SEARXNG_BIND_ADDRESS=0.0.0.0:${MIOS_PORT_SEARXNG:-8888}
7777
Environment=BIND_ADDRESS=0.0.0.0:${MIOS_PORT_SEARXNG:-8888}
78+
# SearXNG's entrypoint calls granian, which reads GRANIAN_HOST +
79+
# GRANIAN_PORT directly (the BIND_ADDRESS / SEARXNG_BIND_ADDRESS
80+
# above are SearXNG-app-level hints used by the upstream Helm chart
81+
# and aren't read by the image's CMD). On the dev VM with Network=
82+
# host, the unmodified granian defaults bind 0.0.0.0:8080 and
83+
# collide with mios-ai (LocalAI). Operator-flagged 2026-05-11.
84+
Environment=GRANIAN_HOST=0.0.0.0
85+
Environment=GRANIAN_PORT=${MIOS_PORT_SEARXNG:-8888}
7886

7987
# Limit log volume; SearXNG is chatty per-query.
8088
Environment=SEARXNG_LOG_LEVEL=WARNING

0 commit comments

Comments
 (0)