diff --git a/.env.example b/.env.example index 52ba1ee..fe7a52e 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,4 @@ -SEARXNG_BASE_URL="http://127.0.0.1:8080" +SEARXNG_BASE_URL="http://searxng:8080" REDIS_BASE_URL="redis://redis:6379/0" WORK_DIR="/Users/username/Documents/workspace_with_my_files" OLLAMA_PORT="11434" diff --git a/docker-compose.yml b/docker-compose.yml index cf6ad29..5120afb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -35,7 +35,7 @@ services: environment: - SEARXNG_BASE_URL=${SEARXNG_BASE_URL:-http://localhost:8080/} - SEARXNG_SECRET_KEY=${SEARXNG_SECRET_KEY} - - UWSGI_WORKERS=4 + - UWSGI_WORKERS=5 - UWSGI_THREADS=4 cap_add: - CHOWN @@ -85,7 +85,7 @@ services: - ${WORK_DIR:-.}:/opt/workspace command: python3 api.py environment: - - SEARXNG_URL=${SEARXNG_BASE_URL:-http://searxng:8080} + - SEARXNG_BASE_URL=${SEARXNG_BASE_URL:-http://searxng:8080} - REDIS_URL=${REDIS_BASE_URL:-redis://redis:6379/0} - WORK_DIR=/opt/workspace - BACKEND_PORT=${BACKEND_PORT} diff --git a/scripts/windows_install.bat b/scripts/windows_install.bat index 3358da9..a007a45 100755 --- a/scripts/windows_install.bat +++ b/scripts/windows_install.bat @@ -7,7 +7,7 @@ if %errorlevel% neq 0 ( echo Error: uv is not installed. Please install uv first. echo You can install it using: powershell -c "irm https://astral.sh/uv/install.ps1 | iex" pause - exit /b 1 + exit /b 2 ) REM Initialize uv project if pyproject.toml doesn't exist diff --git a/sources/tools/searxSearch.py b/sources/tools/searxSearch.py index 4d8fc4f..686d3e1 100644 --- a/sources/tools/searxSearch.py +++ b/sources/tools/searxSearch.py @@ -16,7 +16,7 @@ class searxSearch(Tools): self.tag = "web_search" self.name = "searxSearch" self.description = "A tool for searching a SearxNG for web search" - self.base_url = base_url or os.getenv("SEARXNG_BASE_URL") # Requires a SearxNG base URL + self.base_url = os.getenv("SEARXNG_BASE_URL") # Requires a SearxNG base URL self.user_agent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36" self.paywall_keywords = [ "Member-only", "access denied", "restricted content", "404", "this page is not working"