diff options
author | Maxim Devaev <[email protected]> | 2022-07-24 10:12:15 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-07-24 10:12:15 +0300 |
commit | c1f104c0592921fa24e13fa9d652b6bb1d76f79c (patch) | |
tree | cfa2d01fe9f4bd2c772222eb2fa587b09fa42ce9 /configs | |
parent | e0d00662236f54499bdaf8a87535a99370723edf (diff) |
loc-nobuffering.conf
Diffstat (limited to 'configs')
-rw-r--r-- | configs/nginx/kvmd.ctx-server.conf | 16 | ||||
-rw-r--r-- | configs/nginx/loc-nobuffering.conf | 3 |
2 files changed, 7 insertions, 12 deletions
diff --git a/configs/nginx/kvmd.ctx-server.conf b/configs/nginx/kvmd.ctx-server.conf index 559915ef..e34602e1 100644 --- a/configs/nginx/kvmd.ctx-server.conf +++ b/configs/nginx/kvmd.ctx-server.conf @@ -64,10 +64,8 @@ location /api/msd/read { rewrite ^/api/msd/read\?(.*)$ /msd/read?$1 break; proxy_pass http://kvmd; include /etc/kvmd/nginx/loc-proxy.conf; + include /etc/kvmd/nginx/loc-nobuffering.conf; proxy_read_timeout 7d; - postpone_output 0; - proxy_buffering off; - proxy_ignore_headers X-Accel-Buffering; auth_request off; } @@ -76,10 +74,8 @@ location /api/msd/write_remote { rewrite ^/api/msd/write_remote\?(.*)$ /msd/write_remote?$1 break; proxy_pass http://kvmd; include /etc/kvmd/nginx/loc-proxy.conf; + include /etc/kvmd/nginx/loc-nobuffering.conf; proxy_read_timeout 7d; - postpone_output 0; - proxy_buffering off; - proxy_ignore_headers X-Accel-Buffering; auth_request off; } @@ -100,10 +96,8 @@ location /api/log { rewrite ^/api/log\?(.*)$ /log?$1 break; proxy_pass http://kvmd; include /etc/kvmd/nginx/loc-proxy.conf; + include /etc/kvmd/nginx/loc-nobuffering.conf; proxy_read_timeout 7d; - postpone_output 0; - proxy_buffering off; - proxy_ignore_headers X-Accel-Buffering; auth_request off; } @@ -121,9 +115,7 @@ location /streamer { rewrite ^/streamer/(.*)$ /$1 break; proxy_pass http://ustreamer; include /etc/kvmd/nginx/loc-proxy.conf; - postpone_output 0; - proxy_buffering off; - proxy_ignore_headers X-Accel-Buffering; + include /etc/kvmd/nginx/loc-nobuffering.conf; } location /redfish { diff --git a/configs/nginx/loc-nobuffering.conf b/configs/nginx/loc-nobuffering.conf new file mode 100644 index 00000000..550d2f12 --- /dev/null +++ b/configs/nginx/loc-nobuffering.conf @@ -0,0 +1,3 @@ +postpone_output 0; +proxy_buffering off; +proxy_ignore_headers X-Accel-Buffering; |