summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-08-27 03:01:47 +0300
committerMaxim Devaev <[email protected]>2022-08-27 03:01:47 +0300
commitb2165a460c16f700f7b8f00336fec4df335f9193 (patch)
treeba91c8559d3673ba4449ff1aeb6f781f7eddfbe7
parent6fe5fbd84258661dd3dbe11587dc9959ae8bacb7 (diff)
loc-bigpost.conf
-rw-r--r--PKGBUILD2
-rw-r--r--configs/nginx/kvmd.ctx-server.conf10
-rw-r--r--configs/nginx/loc-bigpost.conf4
3 files changed, 7 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 805c8a00..39e6abda 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -117,7 +117,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,nobuffering}.conf
+ etc/kvmd/nginx/loc-{login,nocache,proxy,websocket,nobuffering,bigpost}.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 40fdcc3e..335849bb 100644
--- a/configs/nginx/kvmd.ctx-server.conf
+++ b/configs/nginx/kvmd.ctx-server.conf
@@ -64,10 +64,7 @@ location /api/hid/print {
rewrite ^/api/hid/print\?(.*)$ /hid/print?$1 break;
proxy_pass http://kvmd;
include /etc/kvmd/nginx/loc-proxy.conf;
- limit_rate 6250k;
- limit_rate_after 50k;
- client_max_body_size 0;
- proxy_request_buffering off;
+ include /etc/kvmd/nginx/loc-bigpost.conf;
auth_request off;
}
@@ -96,10 +93,7 @@ location /api/msd/write {
rewrite ^/api/msd/write\?(.*)$ /msd/write?$1 break;
proxy_pass http://kvmd;
include /etc/kvmd/nginx/loc-proxy.conf;
- limit_rate 6250k;
- limit_rate_after 50k;
- client_max_body_size 0;
- proxy_request_buffering off;
+ include /etc/kvmd/nginx/loc-bigpost.conf;
auth_request off;
}
diff --git a/configs/nginx/loc-bigpost.conf b/configs/nginx/loc-bigpost.conf
new file mode 100644
index 00000000..ebd37a6b
--- /dev/null
+++ b/configs/nginx/loc-bigpost.conf
@@ -0,0 +1,4 @@
+limit_rate 6250k;
+limit_rate_after 50k;
+client_max_body_size 0;
+proxy_request_buffering off;