Merge pull request #344 from Fosowl/dev
Fix : searxng search 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"
|
REDIS_BASE_URL="redis://redis:6379/0"
|
||||||
WORK_DIR="/Users/username/Documents/workspace_with_my_files"
|
WORK_DIR="/Users/username/Documents/workspace_with_my_files"
|
||||||
OLLAMA_PORT="11434"
|
OLLAMA_PORT="11434"
|
||||||
|
|||||||
+2
-2
@@ -35,7 +35,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- SEARXNG_BASE_URL=${SEARXNG_BASE_URL:-http://localhost:8080/}
|
- SEARXNG_BASE_URL=${SEARXNG_BASE_URL:-http://localhost:8080/}
|
||||||
- SEARXNG_SECRET_KEY=${SEARXNG_SECRET_KEY}
|
- SEARXNG_SECRET_KEY=${SEARXNG_SECRET_KEY}
|
||||||
- UWSGI_WORKERS=4
|
- UWSGI_WORKERS=5
|
||||||
- UWSGI_THREADS=4
|
- UWSGI_THREADS=4
|
||||||
cap_add:
|
cap_add:
|
||||||
- CHOWN
|
- CHOWN
|
||||||
@@ -85,7 +85,7 @@ services:
|
|||||||
- ${WORK_DIR:-.}:/opt/workspace
|
- ${WORK_DIR:-.}:/opt/workspace
|
||||||
command: python3 api.py
|
command: python3 api.py
|
||||||
environment:
|
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}
|
- REDIS_URL=${REDIS_BASE_URL:-redis://redis:6379/0}
|
||||||
- WORK_DIR=/opt/workspace
|
- WORK_DIR=/opt/workspace
|
||||||
- BACKEND_PORT=${BACKEND_PORT}
|
- BACKEND_PORT=${BACKEND_PORT}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ if %errorlevel% neq 0 (
|
|||||||
echo Error: uv is not installed. Please install uv first.
|
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"
|
echo You can install it using: powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
|
||||||
pause
|
pause
|
||||||
exit /b 1
|
exit /b 2
|
||||||
)
|
)
|
||||||
|
|
||||||
REM Initialize uv project if pyproject.toml doesn't exist
|
REM Initialize uv project if pyproject.toml doesn't exist
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class searxSearch(Tools):
|
|||||||
self.tag = "web_search"
|
self.tag = "web_search"
|
||||||
self.name = "searxSearch"
|
self.name = "searxSearch"
|
||||||
self.description = "A tool for searching a SearxNG for web search"
|
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.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 = [
|
self.paywall_keywords = [
|
||||||
"Member-only", "access denied", "restricted content", "404", "this page is not working"
|
"Member-only", "access denied", "restricted content", "404", "this page is not working"
|
||||||
|
|||||||
Reference in New Issue
Block a user