Files
WiseGrade/frontend/nginx.conf
T

24 lines
826 B
Nginx Configuration File

server {
listen 80;
root /usr/share/nginx/html;
index index.html;
location = /health { add_header Content-Type text/plain; return 200 'ok'; }
location = /index.html {
add_header Cache-Control "no-store, max-age=0" always;
}
location /assets/ {
add_header Cache-Control "public, max-age=31536000, immutable" always;
}
location /api/ { proxy_pass http://api:8000; proxy_set_header Host $host; client_max_body_size 1m; }
location ~ ^/api/conversations/[0-9]+/(messages|runs/[0-9]+/events)$ {
proxy_pass http://api:8000;
proxy_set_header Host $host;
proxy_buffering off;
proxy_cache off;
proxy_read_timeout 900s;
proxy_send_timeout 900s;
client_max_body_size 1m;
}
location / { try_files $uri /index.html; }
}