From af2ee26a2f022bff01ca446814a35c4aea14d5ca Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Wed, 18 Dec 2024 06:39:18 +0200 Subject: kvmd-media server --- extras/media/manifest.yaml | 5 +++++ extras/media/nginx.ctx-http.conf | 3 +++ extras/media/nginx.ctx-server.conf | 7 +++++++ 3 files changed, 15 insertions(+) create mode 100644 extras/media/manifest.yaml create mode 100644 extras/media/nginx.ctx-http.conf create mode 100644 extras/media/nginx.ctx-server.conf (limited to 'extras') 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; +} -- cgit v1.2.3