Deploy SearxNG on ai-server-4080 for chat_backend grounded search (#10) #11

Merged
westfarn merged 1 commits from feature/searxng-ai-server-4080 into master 2026-08-02 11:33:38 -07:00
Owner

Summary

  • Closes #10.
  • Deploys SearxNG on ai-server-4080 (10.0.0.128) for chat_backend#62 / PR #65 grounded search.
  • New roles/searxng/ (compose + JSON-enabled settings.yml), gated by searxng_stack: true, wired into site.yml.
  • Host port 8088 (not 8080 — that is dta_webapp on this host). UFW allows 10.0.0.0/248088/tcp only.

Ops after merge

./scripts/provision.sh ai-server-4080
# or targeted:
ansible-playbook playbooks/site.yml --limit ai-server-4080 --tags never  # full site play includes searxng when searxng_stack

Then set in chat_backend_prod.env / chat_backend_beta.env:

SEARCH_PROVIDER=searxng
SEARCH_FAILOVER_PROVIDER=ddgs
SEARXNG_BASE_URL=http://10.0.0.128:8088

Smoke test from any app host:

curl -sG 'http://10.0.0.128:8088/search' --data-urlencode 'q=test' -d 'format=json' | head

Test plan

  • Provision ai-server-4080; confirm docker ps shows searxng
  • Confirm :8088 responds with JSON; :8080 still serves dta_webapp
  • Confirm UFW rule is LAN-only
  • From adama/roslin container network, curl SearxNG succeeds
  • Update chat_backend secrets to :8088 and redeploy beta
## Summary - Closes [#10](https://git.aimloperations.com/ai_ml_operations/server-infra/issues/10). - Deploys **SearxNG** on **ai-server-4080** (`10.0.0.128`) for [chat_backend#62](https://git.aimloperations.com/ai_ml_operations/chat_backend/issues/62) / [PR #65](https://git.aimloperations.com/ai_ml_operations/chat_backend/pulls/65) grounded search. - New `roles/searxng/` (compose + JSON-enabled `settings.yml`), gated by `searxng_stack: true`, wired into `site.yml`. - **Host port 8088** (not 8080 — that is `dta_webapp` on this host). UFW allows `10.0.0.0/24` → `8088/tcp` only. ## Ops after merge ```bash ./scripts/provision.sh ai-server-4080 # or targeted: ansible-playbook playbooks/site.yml --limit ai-server-4080 --tags never # full site play includes searxng when searxng_stack ``` Then set in `chat_backend_prod.env` / `chat_backend_beta.env`: ```text SEARCH_PROVIDER=searxng SEARCH_FAILOVER_PROVIDER=ddgs SEARXNG_BASE_URL=http://10.0.0.128:8088 ``` Smoke test from any app host: ```bash curl -sG 'http://10.0.0.128:8088/search' --data-urlencode 'q=test' -d 'format=json' | head ``` ## Test plan - [ ] Provision ai-server-4080; confirm `docker ps` shows `searxng` - [ ] Confirm `:8088` responds with JSON; `:8080` still serves dta_webapp - [ ] Confirm UFW rule is LAN-only - [ ] From adama/roslin container network, curl SearxNG succeeds - [ ] Update chat_backend secrets to `:8088` and redeploy beta
westfarn added 1 commit 2026-08-02 11:23:33 -07:00
Deploy SearxNG on ai-server-4080 for chat_backend grounded search (#10).
Sync runner checkout / sync (pull_request) Successful in 6s
f1f96e49b1
Add roles/searxng (compose + JSON-enabled settings), gate with searxng_stack
on ai-server-4080, open UFW 8088/tcp from the LAN. Port 8088 avoids the
dta_webapp :8080 clash; chat_backend must use SEARXNG_BASE_URL=http://10.0.0.128:8088.
westfarn merged commit 7e48c22e3e into master 2026-08-02 11:33:38 -07:00
westfarn deleted branch feature/searxng-ai-server-4080 2026-08-02 11:33:38 -07:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ai_ml_operations/server-infra#11