File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed
Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change @@ -21,3 +21,63 @@ or can build your own if you got lot of time in this world. by using [JanusCoreD
2121 docker build -t dockerusername/janusgateway:latest .
2222 docker run -d dockerusername/janusgateway:latest
2323
24+
25+ # Nginx Janus Domain Config
26+ ```
27+ map $http_upgrade $connection_upgrade {
28+ default upgrade;
29+ '' close;
30+ }
31+
32+ upstream websocket {
33+ server 127.0.0.1:8188;
34+ }
35+ upstream admin_websocket {
36+ server 127.0.0.1:7188;
37+ }
38+
39+ upstream rest{
40+ server 127.0.0.1:8088;
41+ }
42+ upstream admin_rest{
43+ server 127.0.0.1:7088;
44+ }
45+
46+ server {
47+ listen 80;
48+
49+ server_name janus1.januscaler.com;
50+
51+ location /admin/ws {
52+ proxy_pass http://admin_websocket;
53+ proxy_http_version 1.1;
54+ proxy_set_header Upgrade $http_upgrade;
55+ proxy_set_header Connection $connection_upgrade;
56+ proxy_set_header Host $host;
57+ }
58+
59+
60+ location /admin {
61+ proxy_set_header Host $host;
62+ proxy_set_header X-Real-IP $remote_addr;
63+ proxy_pass http://admin_rest/admin;
64+ }
65+
66+
67+
68+ location /janus/ws {
69+ proxy_pass http://websocket;
70+ proxy_http_version 1.1;
71+ proxy_set_header Upgrade $http_upgrade;
72+ proxy_set_header Connection $connection_upgrade;
73+ proxy_set_header Host $host;
74+ }
75+
76+
77+ location /janus {
78+ proxy_set_header Host $host;
79+ proxy_set_header X-Real-IP $remote_addr;
80+ proxy_pass http://rest/janus;
81+ }
82+ }
83+ ```
You can’t perform that action at this time.
0 commit comments