deploy/apache.conf: canonical Apache proxy config for hp-prod-tracker — adds WebSocket passthrough and 500 MB upload limit missing from the current inline config. deploy.sh now replaces the inline block with an Include directive on each deploy so the config stays in source control. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
21 lines
1.1 KiB
ApacheConf
21 lines
1.1 KiB
ApacheConf
# ── 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)
|
|
<Location /hp-prod-tracker>
|
|
LimitRequestBody 524288000
|
|
</Location>
|
|
|
|
# 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
|