fix(infra): increase nginx client_max_body_size to 50M; docs: update status

This commit is contained in:
2026-01-05 16:05:10 +00:00
parent aa1319856c
commit 96290b84c4
3 changed files with 7 additions and 0 deletions

View File

@@ -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.

View File

@@ -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;

View File

@@ -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;