oliver-metadata-tool/deploy/apache-solventum-metadata.conf
SamoilenkoVadym c59db0e9fd Serve static files via Apache, not Docker
- deploy.sh copies static/ to /var/www/html/solventum-image-metadata/
- Apache Alias serves CSS/JS directly from disk
- ProxyPass exclusion prevents static requests going to Docker
- Updated apache config with full working example

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 21:50:02 +00:00

30 lines
1.1 KiB
Text

# Solventum Image Metadata Tool — Apache Config
# Add these directives inside your existing <VirtualHost *:443> for ai-sandbox.oliver.solutions
#
# IMPORTANT: The static files Alias and "ProxyPass ... !" exclusion
# MUST come BEFORE the main ProxyPass rule.
# Serve static files directly from disk (fast, bypasses Docker)
Alias /solventum-image-metadata/static /var/www/html/solventum-image-metadata/static
<Directory /var/www/html/solventum-image-metadata/static>
Require all granted
Options -Indexes
</Directory>
# Exclude static from proxy (Apache serves them directly)
ProxyPass /solventum-image-metadata/static !
# Proxy everything else to Docker container
ProxyPass /solventum-image-metadata/ http://localhost:5001/
ProxyPassReverse /solventum-image-metadata/ http://localhost:5001/
# SSE support (disable buffering for realtime AI progress events)
<LocationMatch "^/solventum-image-metadata/events/">
SetEnv proxy-sendchunked 1
SetEnv proxy-interim-response RFC
</LocationMatch>
# Upload size limit (500MB)
<Location /solventum-image-metadata/>
LimitRequestBody 524288000
</Location>