summaryrefslogtreecommitdiff
path: root/configs/nginx/kvmd.ctx-server.conf
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-07-23 18:34:58 +0300
committerMaxim Devaev <[email protected]>2022-07-24 05:38:26 +0300
commit0e3ebac3627fe5039957d2d48d68d8620ff9384f (patch)
tree2792d2c261edffedf8bd8675f6ad8a5ea1bb56a3 /configs/nginx/kvmd.ctx-server.conf
parentde140537254a517559c78de048791a197011c1f6 (diff)
reading images api
Diffstat (limited to 'configs/nginx/kvmd.ctx-server.conf')
-rw-r--r--configs/nginx/kvmd.ctx-server.conf9
1 files changed, 9 insertions, 0 deletions
diff --git a/configs/nginx/kvmd.ctx-server.conf b/configs/nginx/kvmd.ctx-server.conf
index 537ed68f..c82e5395 100644
--- a/configs/nginx/kvmd.ctx-server.conf
+++ b/configs/nginx/kvmd.ctx-server.conf
@@ -59,6 +59,15 @@ location /api/ws {
auth_request off;
}
+location /api/msd/read {
+ rewrite ^/api/msd/read$ /msd/read break;
+ rewrite ^/api/msd/read\?(.*)$ /msd/read?$1 break;
+ proxy_pass http://kvmd;
+ include /etc/kvmd/nginx/loc-proxy.conf;
+ proxy_read_timeout 7d;
+ auth_request off;
+}
+
location /api/msd/write_remote {
rewrite ^/api/msd/write_remote$ /msd/write_remote break;
rewrite ^/api/msd/write_remote\?(.*)$ /msd/write_remote?$1 break;