Skip to content

Commit e534c0b

Browse files
committed
nginx: Add support for large files in restconf app.
1 parent 692fa16 commit e534c0b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

board/common/rootfs/etc/nginx/restconf.app

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# /telemetry/optics is for streaming (not used atm)
2+
# Proxy buffer settings for large files
3+
proxy_buffering off; # Disable buffering for streaming
4+
proxy_request_buffering off; # Stream request body immediately
5+
proxy_max_temp_file_size 0; # No temp files
26
location ~ ^/(restconf|yang|.well-known)/ {
7+
client_max_body_size 200M;
8+
client_body_buffer_size 1M;
39
grpc_pass grpc://[::1]:10080;
410
grpc_set_header Host $host;
511
grpc_set_header X-Real-IP $remote_addr;

0 commit comments

Comments
 (0)