diff --git a/GEMINI.md b/GEMINI.md index f419fd92..50580a29 100644 --- a/GEMINI.md +++ b/GEMINI.md @@ -61,6 +61,7 @@ The application will be available at `http://localhost:8080`. * **Market Intelligence Tool (v1.2) - Backend Hardening:** * **"Failed to fetch" Resolved:** Fixed a critical Nginx routing issue by forcing the frontend to use relative API paths (`./api`) instead of absolute ports, ensuring requests correctly pass through the reverse proxy in Docker. + * **Large Payload Fix:** Increased `client_max_body_size` to 50M in both Nginx configurations (`nginx-proxy.conf` and frontend `nginx.conf`) to prevent 413 Errors when uploading large knowledge base files during campaign generation. * **JSON Stability:** The Python Orchestrator and Node.js bridge were hardened against invalid JSON output. The system now robustly handles stdout noise and logs full raw output to `/app/Log/server_dump.txt` in case of errors. * **Language Support:** Implemented a `--language` flag. The tool now correctly respects the frontend language selection (defaulting to German) and forces the LLM to output German text for signals, ICPs, and outreach campaigns. * **Logging:** Fixed log volume mounting paths to ensure debug logs are persisted and accessible. diff --git a/general-market-intelligence/nginx.conf b/general-market-intelligence/nginx.conf index 8f29378e..d432b4fd 100644 --- a/general-market-intelligence/nginx.conf +++ b/general-market-intelligence/nginx.conf @@ -1,6 +1,9 @@ server { listen 80; + # Allow large uploads for API proxying + client_max_body_size 50M; + # 1. Serve React Frontend (Static Files) location / { root /usr/share/nginx/html; diff --git a/nginx-proxy.conf b/nginx-proxy.conf index ae9fcfa6..03a7a064 100644 --- a/nginx-proxy.conf +++ b/nginx-proxy.conf @@ -9,6 +9,9 @@ http { access_log /dev/stdout; error_log /dev/stderr; + # Increase Body Size Limit for Large Payloads (Knowledge Base + Audits) + client_max_body_size 50M; + # Increase Timeouts for Long-Running AI Tasks proxy_read_timeout 1200s; proxy_connect_timeout 1200s;