File tree 3 files changed +14
-4
lines changed
3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : Janus Static
2
+ description : Janus WebRTC Gateway (Static Config)
3
+ path : janus
4
+ daemon : kvmd-janus-static
5
+ place : -1
Original file line number Diff line number Diff line change 21
21
22
22
23
23
import os
24
+ import re
24
25
25
26
from typing import Dict
26
27
from typing import Optional
@@ -51,9 +52,10 @@ def __inner_get_state(self) -> Optional[Dict]:
51
52
try :
52
53
extras_path = self .__global_config .kvmd .info .extras
53
54
extras : Dict [str , Dict ] = {}
54
- for app in os .listdir (extras_path ):
55
- if app [0 ] != "." and os .path .isdir (os .path .join (extras_path , app )):
56
- extras [app ] = load_yaml_file (os .path .join (extras_path , app , "manifest.yaml" ))
55
+ for name in os .listdir (extras_path ):
56
+ if name [0 ] != "." and os .path .isdir (os .path .join (extras_path , name )):
57
+ app = re .sub (r"[^a-zA-Z0-9_]+" , "_" , name )
58
+ extras [app ] = load_yaml_file (os .path .join (extras_path , name , "manifest.yaml" ))
57
59
self .__rewrite_app_daemon (extras [app ])
58
60
self .__rewrite_app_port (extras [app ])
59
61
return extras
Original file line number Diff line number Diff line change @@ -126,7 +126,10 @@ export function Session() {
126
126
$ ( "webterm-window" ) . show_hook = show_hook ;
127
127
$ ( "webterm-window" ) . close_hook = close_hook ;
128
128
129
- __streamer . setJanusEnabled ( state . janus && ( state . janus . enabled || state . janus . started ) ) ;
129
+ __streamer . setJanusEnabled (
130
+ ( state . janus && ( state . janus . enabled || state . janus . started ) )
131
+ || ( state . janus_static && ( state . janus_static . enabled || state . janus_static . started ) )
132
+ ) ;
130
133
} ;
131
134
132
135
var __formatTemp = function ( temp ) {
You can’t perform that action at this time.
0 commit comments