Files

18 lines
619 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 /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; }
}