summaryrefslogtreecommitdiff
path: root/os/platforms/v1/nginx.conf
diff options
context:
space:
mode:
Diffstat (limited to 'os/platforms/v1/nginx.conf')
-rw-r--r--os/platforms/v1/nginx.conf21
1 files changed, 19 insertions, 2 deletions
diff --git a/os/platforms/v1/nginx.conf b/os/platforms/v1/nginx.conf
index a236b085..9fbd41e5 100644
--- a/os/platforms/v1/nginx.conf
+++ b/os/platforms/v1/nginx.conf
@@ -18,7 +18,7 @@ http {
keepalive_timeout 10;
# gzip on;
- upstream kvm_ws {
+ upstream kvmd {
server localhost:8081 fail_timeout=0s max_fails=0;
}
@@ -46,9 +46,26 @@ http {
location /kvm/ws {
rewrite /kvm/ws /ws break;
- proxy_pass http://kvm_ws;
+ proxy_pass http://kvmd;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
+ proxy_connect_timeout 7d;
+ proxy_send_timeout 7d;
+ proxy_read_timeout 7d;
+ }
+
+ location /kvm/msd/write {
+ rewrite /kvm/msd/write /msd/write break;
+ proxy_pass http://kvmd;
+ limit_rate 6250k;
+ limit_rate_after 50k;
+ client_max_body_size 0;
+ proxy_request_buffering off;
+ }
+
+ location /kvm {
+ rewrite /kvm/?(.*) /$1 break;
+ proxy_pass http://kvmd;
}
location /video {