Merge pull request #373 from Fosowl/dev

Fix backend url issue
This commit is contained in:
Martin
2025-07-06 00:35:29 +02:00
committed by GitHub
2 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -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=5 - UWSGI_WORKERS=4
- UWSGI_THREADS=4 - UWSGI_THREADS=4
cap_add: cap_add:
- CHOWN - CHOWN
@@ -65,7 +65,7 @@ services:
environment: environment:
- NODE_ENV=development - NODE_ENV=development
- CHOKIDAR_USEPOLLING=true - CHOKIDAR_USEPOLLING=true
- REACT_APP_BACKEND_URL=http://host.docker.internal:${BACKEND_PORT:-7777} - REACT_APP_BACKEND_URL=http://localhost:7777
networks: networks:
- agentic-seek-net - agentic-seek-net
+1 -2
View File
@@ -6,10 +6,9 @@ import { ThemeToggle } from "./components/ThemeToggle";
import { ResizableLayout } from "./components/ResizableLayout"; import { ResizableLayout } from "./components/ResizableLayout";
import faviconPng from "./logo.png"; import faviconPng from "./logo.png";
const BACKEND_URL = process.env.REACT_APP_BACKEND_URL || 'http://localhost:7777'; const BACKEND_URL = process.env.REACT_APP_BACKEND_URL;
console.log("Using backend URL:", BACKEND_URL); console.log("Using backend URL:", BACKEND_URL);
function App() { function App() {
const [query, setQuery] = useState(""); const [query, setQuery] = useState("");
const [messages, setMessages] = useState([]); const [messages, setMessages] = useState([]);