summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
Diffstat (limited to 'extras')
-rw-r--r--extras/media/manifest.yaml5
-rw-r--r--extras/media/nginx.ctx-http.conf3
-rw-r--r--extras/media/nginx.ctx-server.conf7
3 files changed, 15 insertions, 0 deletions
diff --git a/extras/media/manifest.yaml b/extras/media/manifest.yaml
new file mode 100644
index 00000000..f81c1bbf
--- /dev/null
+++ b/extras/media/manifest.yaml
@@ -0,0 +1,5 @@
+name: Media
+description: KVMD Media Proxy
+path: media
+daemon: kvmd-media
+place: -1
diff --git a/extras/media/nginx.ctx-http.conf b/extras/media/nginx.ctx-http.conf
new file mode 100644
index 00000000..d4ff7ac3
--- /dev/null
+++ b/extras/media/nginx.ctx-http.conf
@@ -0,0 +1,3 @@
+upstream media {
+ server unix:/run/kvmd/media.sock fail_timeout=0s max_fails=0;
+}
diff --git a/extras/media/nginx.ctx-server.conf b/extras/media/nginx.ctx-server.conf
new file mode 100644
index 00000000..67f877fc
--- /dev/null
+++ b/extras/media/nginx.ctx-server.conf
@@ -0,0 +1,7 @@
+location /media/ws {
+ rewrite ^/media/ws$ /ws break;
+ rewrite ^/media/ws\?(.*)$ /ws?$1 break;
+ proxy_pass http://media;
+ include /etc/kvmd/nginx/loc-proxy.conf;
+ include /etc/kvmd/nginx/loc-websocket.conf;
+}