Skip to content

Commit 5f7c0ac

Browse files
committed
nginx config refactor
1 parent d61a3a8 commit 5f7c0ac

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

config/nginx-vanilla.conf

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,16 +176,17 @@ server {
176176
server {
177177
listen 80;
178178
server_name indexer.TLD_NAME;
179-
180-
# Ensure Nginx doesn't buffer the SSE stream
181-
proxy_buffering off;
182-
183-
# Keep the connection alive for SSE
184-
proxy_read_timeout 300;
185-
proxy_send_timeout 300;
186179

187180
location / {
188181
proxy_pass http://localhost:6000;
182+
183+
# Ensure Nginx doesn't buffer the SSE stream
184+
proxy_buffering off;
185+
186+
# Keep the connection alive for SSE
187+
proxy_read_timeout 300;
188+
proxy_send_timeout 300;
189+
189190
#add_header Access-Control-Allow-Origin *;
190191
add_header Access-Control-Max-Age 3600;
191192
add_header Access-Control-Expose-Headers Content-Length;

0 commit comments

Comments
 (0)