CI / ruff · pytest (pull_request) Successful in 2m34s
Requirement: no extra software beyond the regulated set. The web app is built in a Node stage and served by nginx (:8080, /api → app, SSE unbuffered); the server override keeps it off (host nginx serves the bundle). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
19 lines
451 B
Nginx Configuration File
19 lines
451 B
Nginx Configuration File
# Same-origin API: the app calls /api/v1/... — proxied to the FastAPI container (SSE streaming unbuffered).
|
|
server {
|
|
listen 80;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
location /api/ {
|
|
proxy_pass http://app:8000;
|
|
proxy_set_header Host $host;
|
|
proxy_http_version 1.1;
|
|
proxy_buffering off;
|
|
proxy_read_timeout 120s;
|
|
}
|
|
}
|