From a5ab41ef099ad039692e1efb7c9712a78e3ed38c Mon Sep 17 00:00:00 2001 From: first Date: Wed, 23 Jul 2025 21:20:27 +0000 Subject: [PATCH] search domain prompt --- onepush.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/onepush.sh b/onepush.sh index 2ba841a..9b777b2 100644 --- a/onepush.sh +++ b/onepush.sh @@ -34,8 +34,12 @@ fi echo "" read -p "Deploy a private SearXNG instance for the research tool? [y/N]: " DEPLOY_SEARXNG BRAVE_API_KEY="" +SEARCH_DOMAIN="" if [[ "${DEPLOY_SEARXNG,,}" == "y" ]]; then - SEARCH_DOMAIN="search.r21.io" + # MODIFIED: Prompt for the SearXNG domain instead of hardcoding it. + read -p "Enter the domain for SearXNG (e.g., search.example.com): " SEARCH_DOMAIN + if [[ -z "$SEARCH_DOMAIN" ]]; then echo "❌ SearXNG domain cannot be empty."; exit 1; fi + echo "ℹ️ SearXNG will be deployed to https://$SEARCH_DOMAIN" read -p "Enter your Brave Search API key (highly recommended, or press Enter): " BRAVE_API_KEY fi @@ -222,7 +226,7 @@ if [[ "${DEPLOY_SEARXNG,,}" == "y" ]]; then echo " (This works because the containers are on a private network)." echo " 4. Save settings. You can now enable web search for any model." echo "" - echo " OPTION B: Advanced Python Tool (For custom logic)" + echo " OPTION B: Advanced Python Research Tool (For custom logic)" echo " 1. Go to Settings -> Tools and click 'Add Tool'." echo " 2. In the 'Load from URL' field, paste:" echo " https://raw.githubusercontent.com/iamarcel/open-webui-utils/main/research_tool.py"