summaryrefslogtreecommitdiff
path: root/configs/nginx
diff options
context:
space:
mode:
Diffstat (limited to 'configs/nginx')
-rw-r--r--configs/nginx/kvmd.ctx-server.conf16
-rw-r--r--configs/nginx/loc-nobuffering.conf3
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;