hm_ai_qc_report_tool/deploy/nginx-location.conf
nickviljoen f21e41afc3 v1.2.0: Add Docker deployment, simplify auth to local login, production config
- Add Dockerfile, docker-compose.yml, .dockerignore for containerised deployment
- Add deploy/ scripts (deploy.sh, nginx/apache configs, password generator)
- Replace MSAL/Azure AD auth with local username/password authentication
- Add login.html template
- Simplify app.py, middleware, and auth routes for production use
- Update gunicorn_config.py and wsgi.py for Docker/production
- Update templates to work with new auth and URL prefix handling

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

28 lines
869 B
Text

# Add this inside the server { } block for ai-sandbox.oliver.solutions
# nginx -t && nginx -s reload
location /hm-ai-qc-report {
# Strip prefix and proxy to container
rewrite ^/hm-ai-qc-report(/.*)$ $1 break;
rewrite ^/hm-ai-qc-report$ / break;
proxy_pass http://127.0.0.1:5050;
# Tell Flask what the original prefix was
proxy_set_header X-Script-Name /hm-ai-qc-report;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
# Large file uploads (PDFs, videos)
client_max_body_size 500M;
# Long-running requests (QC execution, Box searches)
proxy_read_timeout 180s;
proxy_connect_timeout 10s;
proxy_send_timeout 60s;
# SSE support (disable buffering for progress streams)
proxy_buffering off;
proxy_cache off;
}