# ── HP Prod Tracker — Next.js standalone at :3001 ───────────────────────── # Managed by deploy.sh — edit this file and redeploy instead of editing # /etc/apache2/sites-available/optical-dev.oliver.solutions.conf directly. # Large uploads: video files up to 500 MB (overrides the global 100 MB limit) LimitRequestBody 524288000 # WebSocket passthrough (Next.js real-time features) RewriteCond %{HTTP:Upgrade} websocket [NC] RewriteCond %{HTTP:Connection} upgrade [NC] RewriteRule ^/hp-prod-tracker/(.*) ws://127.0.0.1:3001/hp-prod-tracker/$1 [P,L] # Chat + AI endpoints: long timeout for streaming responses ProxyPass /hp-prod-tracker/api/chat http://127.0.0.1:3001/hp-prod-tracker/api/chat timeout=300 ProxyPassReverse /hp-prod-tracker/api/chat http://127.0.0.1:3001/hp-prod-tracker/api/chat # All other routes (must come after more-specific paths above) ProxyPass /hp-prod-tracker http://127.0.0.1:3001/hp-prod-tracker ProxyPassReverse /hp-prod-tracker http://127.0.0.1:3001/hp-prod-tracker