Skip to content

Commit 9984818

Browse files
feat: increase Nginx timeouts and disable buffering for long-running operations in nginx.conf and template
1 parent c9bbbfc commit 9984818

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

client/nginx.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ server {
2424
proxy_set_header X-Real-IP $remote_addr;
2525
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2626
proxy_set_header X-Forwarded-Proto $scheme;
27+
28+
# Increase timeouts for long-running operations like course generation
29+
proxy_connect_timeout 60s;
30+
proxy_send_timeout 300s;
31+
proxy_read_timeout 300s;
32+
proxy_buffering off;
2733
}
2834

2935
location /healthz {

client/nginx.conf.template

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ server {
2323
proxy_set_header X-Real-IP $remote_addr;
2424
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2525
proxy_set_header X-Forwarded-Proto $scheme;
26+
27+
# Increase timeouts for long-running operations like course generation
28+
proxy_connect_timeout 60s;
29+
proxy_send_timeout 300s;
30+
proxy_read_timeout 300s;
31+
proxy_buffering off;
2632
}
2733

2834
location /healthz {

0 commit comments

Comments
 (0)