Fix : searxng issue on docker
This commit is contained in:
+1
-1
@@ -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"
|
||||
|
||||
+2
-2
@@ -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}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user