diff options
author | Maxim Devaev <[email protected]> | 2024-12-18 06:39:18 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-12-18 06:39:18 +0200 |
commit | af2ee26a2f022bff01ca446814a35c4aea14d5ca (patch) | |
tree | 8826291c60ea78935a113f5f2a17f11a288e6ab1 /extras | |
parent | 596334735e1e7a0ebd685ff7df2a8dbd776763f0 (diff) |
kvmd-media server
Diffstat (limited to 'extras')
-rw-r--r-- | extras/media/manifest.yaml | 5 | ||||
-rw-r--r-- | extras/media/nginx.ctx-http.conf | 3 | ||||
-rw-r--r-- | extras/media/nginx.ctx-server.conf | 7 |
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; +} |