This commit introduces the foundational elements for the new "Company Explorer" web application, marking a significant step away from the legacy Google Sheets / CLI system. Key changes include: - Project Structure: A new directory with separate (FastAPI) and (React/Vite) components. - Data Persistence: Migration from Google Sheets to a local SQLite database () using SQLAlchemy. - Core Utilities: Extraction and cleanup of essential helper functions (LLM wrappers, text utilities) into . - Backend Services: , , for AI-powered analysis, and logic. - Frontend UI: Basic React application with company table, import wizard, and dynamic inspector sidebar. - Docker Integration: Updated and for multi-stage builds and sideloading. - Deployment & Access: Integrated into central Nginx proxy and dashboard, accessible via . Lessons Learned & Fixed during development: - Frontend Asset Loading: Addressed issues with Vite's path and FastAPI's . - TypeScript Configuration: Added and . - Database Schema Evolution: Solved errors by forcing a new database file and correcting override. - Logging: Implemented robust file-based logging (). This new foundation provides a powerful and maintainable platform for future B2B robotics lead generation.
92 lines
2.7 KiB
Plaintext
92 lines
2.7 KiB
Plaintext
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
include mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
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;
|
|
proxy_send_timeout 1200s;
|
|
send_timeout 1200s;
|
|
|
|
# Resolver ist wichtig für Docker
|
|
resolver 127.0.0.11 valid=30s ipv6=off;
|
|
|
|
server {
|
|
listen 80;
|
|
|
|
# Basic Auth wieder aktiviert
|
|
auth_basic "Restricted Access - Local AI Suite";
|
|
auth_basic_user_file /etc/nginx/.htpasswd;
|
|
|
|
location / {
|
|
proxy_pass http://dashboard:80;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
|
|
location /b2b/ {
|
|
# Der Trailing Slash am Ende ist wichtig!
|
|
proxy_pass http://b2b-app:3002/;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
# Explicit timeouts for this location
|
|
proxy_read_timeout 1200s;
|
|
proxy_connect_timeout 1200s;
|
|
proxy_send_timeout 1200s;
|
|
}
|
|
|
|
location /market/ {
|
|
# Der Trailing Slash am Ende ist wichtig!
|
|
proxy_pass http://market-frontend:80/;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
# Explicit timeouts for this location
|
|
proxy_read_timeout 1200s;
|
|
proxy_connect_timeout 1200s;
|
|
proxy_send_timeout 1200s;
|
|
}
|
|
|
|
location /gtm/ {
|
|
# Der Trailing Slash am Ende ist wichtig!
|
|
proxy_pass http://gtm-app:3005/;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
# Explicit timeouts for this location
|
|
proxy_read_timeout 1200s;
|
|
proxy_connect_timeout 1200s;
|
|
proxy_send_timeout 1200s;
|
|
}
|
|
|
|
location /ce/ {
|
|
# Company Explorer (Robotics Edition)
|
|
# Der Trailing Slash am Ende ist wichtig!
|
|
proxy_pass http://company-explorer:8000/;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
# Explicit timeouts
|
|
proxy_read_timeout 1200s;
|
|
proxy_connect_timeout 1200s;
|
|
proxy_send_timeout 1200s;
|
|
}
|
|
}
|
|
}
|