summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-07-24 10:12:15 +0300
committerMaxim Devaev <[email protected]>2022-07-24 10:12:15 +0300
commitc1f104c0592921fa24e13fa9d652b6bb1d76f79c (patch)
treecfa2d01fe9f4bd2c772222eb2fa587b09fa42ce9
parente0d00662236f54499bdaf8a87535a99370723edf (diff)
loc-nobuffering.conf
-rw-r--r--PKGBUILD2
-rw-r--r--configs/nginx/kvmd.ctx-server.conf16
-rw-r--r--configs/nginx/loc-nobuffering.conf3
3 files changed, 8 insertions, 13 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f1eb0d48..4c176aff 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -116,7 +116,7 @@ backup=(
etc/kvmd/{ht,ipmi,vnc}passwd
etc/kvmd/nginx/{kvmd.ctx-{http,server},certbot.ctx-server}.conf
etc/kvmd/nginx/listen-http{,s}.conf
- etc/kvmd/nginx/loc-{login,nocache,proxy,websocket}.conf
+ etc/kvmd/nginx/loc-{login,nocache,proxy,websocket,nobuffering}.conf
etc/kvmd/nginx/{mime-types,ssl,redirect-to-https,nginx}.conf
etc/kvmd/janus/janus{,.plugin.ustreamer,.transport.websockets}.jcfg
etc/kvmd/web.css
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;