summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
Diffstat (limited to 'extras')
-rw-r--r--extras/janus/nginx.ctx-http.conf3
-rw-r--r--extras/janus/nginx.ctx-server.conf7
2 files changed, 10 insertions, 0 deletions
diff --git a/extras/janus/nginx.ctx-http.conf b/extras/janus/nginx.ctx-http.conf
new file mode 100644
index 00000000..81dd8913
--- /dev/null
+++ b/extras/janus/nginx.ctx-http.conf
@@ -0,0 +1,3 @@
+upstream janus-ws {
+ server unix:/run/kvmd/janus-ws.sock fail_timeout=0s max_fails=0;
+}
diff --git a/extras/janus/nginx.ctx-server.conf b/extras/janus/nginx.ctx-server.conf
new file mode 100644
index 00000000..d17a7288
--- /dev/null
+++ b/extras/janus/nginx.ctx-server.conf
@@ -0,0 +1,7 @@
+location /janus/ws {
+ rewrite ^/janus/ws$ / break;
+ rewrite ^/janus/ws\?(.*)$ /?$1 break;
+ proxy_pass http://janus-ws;
+ include /etc/kvmd/nginx/loc-proxy.conf;
+ include /etc/kvmd/nginx/loc-websocket.conf;
+}