Removed static file serving, everything now goes through Flask for authentication. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
822 B
Text
25 lines
822 B
Text
# H&M EMS Product Review Tool
|
|
# Apache Configuration
|
|
# Domain: https://ai-sandbox.oliver.solutions/hm-ems-report
|
|
|
|
# Everything except images goes to Flask (for authentication)
|
|
ProxyPass /hm-ems-report/images !
|
|
ProxyPass /hm-ems-report http://localhost:5000
|
|
ProxyPassReverse /hm-ems-report http://localhost:5000
|
|
|
|
# Campaign images (served directly by Apache for better performance)
|
|
Alias /hm-ems-report/images /opt/hm-ems-data/campaign_images
|
|
<Directory /opt/hm-ems-data/campaign_images>
|
|
Options -Indexes +FollowSymLinks
|
|
AllowOverride None
|
|
Require all granted
|
|
</Directory>
|
|
|
|
# Optional: Basic Authentication
|
|
# Uncomment to enable password protection
|
|
# <Location /hm-ems-report>
|
|
# AuthType Basic
|
|
# AuthName "H&M EMS Access"
|
|
# AuthUserFile /etc/apache2/.htpasswd
|
|
# Require valid-user
|
|
# </Location>
|