Debian Codegraph @

conf/janus.transport.websockets.jcfg.sample

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 # WebSockets stuff: whether they should be enabled, which ports they
2 # should use, and so on.
3 general: {
4 #events = true # Whether to notify event handlers about transport events (default=true)
5 json = "compact" # Whether the JSON messages should be indented (pretty),
6 # plain (no indentation) or compact (no indentation and no spaces)
7 #pingpong_trigger = 30 # After how many seconds of idle, a PING should be sent
8 #pingpong_timeout = 10 # After how many seconds of not getting a PONG, a timeout should be detected
9
10 ws = true # Whether to enable the WebSockets API
11 ws_port = 8188 # WebSockets server port
12 #ws_interface = "eth0" # Whether we should bind this server to a specific interface only
13 #ws_ip = "192.168.0.1" # Whether we should bind this server to a specific IP address only
14 #ws_unix = "/run/ws.sock" # Use WebSocket server over UNIX socket instead of TCP
15 wss = false # Whether to enable secure WebSockets
16 #wss_port = 8989 # WebSockets server secure port, if enabled
17 #wss_interface = "eth0" # Whether we should bind this server to a specific interface only
18 #wss_ip = "192.168.0.1" # Whether we should bind this server to a specific IP address only
19 #wss_unix = "/run/wss.sock" # Use WebSocket server over UNIX socket instead of TCP
20 #ws_logging = "err,warn" # libwebsockets debugging level as a comma separated list of things
21 # to debug, supported values: err, warn, notice, info, debug, parser,
22 # header, ext, client, latency, user, count (plus 'none' and 'all')
23 #ws_acl = "127.,192.168.0." # Only allow requests coming from this comma separated list of addresses
24 #ws_acl_forwarded = true # Whether we should check the X-Forwarded-For header too for the ACL
25 # (default=false, since without a proxy in the middle this could be abused)
26 }
27
28 # If you want to expose the Admin API via WebSockets as well, you need to
29 # specify a different server instance, as you cannot mix Janus API and
30 # Admin API messaging. Notice that by default the Admin API support via
31 # WebSockets is disabled.
32 admin: {
33 admin_ws = false # Whether to enable the Admin API WebSockets API
34 admin_ws_port = 7188 # Admin API WebSockets server port, if enabled
35 #admin_ws_interface = "eth0" # Whether we should bind this server to a specific interface only
36 #admin_ws_ip = "192.168.0.1" # Whether we should bind this server to a specific IP address only
37 #admin_ws_unix = "/run/aws.sock" # Use WebSocket server over UNIX socket instead of TCP
38 admin_wss = false # Whether to enable the Admin API secure WebSockets
39 #admin_wss_port = 7989 # Admin API WebSockets server secure port, if enabled
40 #admin_wss_interface = "eth0" # Whether we should bind this server to a specific interface only
41 #admin_wss_ip = "192.168.0.1" # Whether we should bind this server to a specific IP address only
42 #admin_wss_unix = "/run/awss.sock" # Use WebSocket server over UNIX socket instead of TCP
43 #admin_ws_acl = "127.,192.168.0." # Only allow requests coming from this comma separated list of addresses
44 #admin_ws_acl_forwarded = true # Whether we should check the X-Forwarded-For header too for the ACL
45 # (default=false, since without a proxy in the middle this could be abused)
46 }
47
48 # The HTTP servers created in Janus support CORS out of the box, but by
49 # default they return a wildcard (*) in the 'Access-Control-Allow-Origin'
50 # header. This works fine in most situations, except when we have to
51 # respond to a credential request (withCredentials=true in the XHR). If
52 # you need that, uncomment and set the 'allow_origin' below to specify
53 # what must be returned in 'Access-Control-Allow-Origin'. More details:
54 # https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
55 # In case you want to enforce the Origin validation, rather than leave
56 # it to browsers, you can set 'enforce_cors' to 'true' to have Janus
57 # return a '403 Forbidden' for all requests that don't comply.
58 cors: {
59 #allow_origin = "http://foo.example"
60 #enforce_cors = true
61 }
62
63 # Certificate and key to use for any secure WebSocket server, if enabled (and passphrase if needed).
64 # You can also disable insecure protocols and ciphers by configuring the
65 # 'ciphers' property accordingly (no limitation by default).
66 # Examples of recommended cipher strings at https://cheatsheetseries.owasp.org/cheatsheets/TLS_Cipher_String_Cheat_Sheet.html
67 certificates: {
68 #cert_pem = "/path/to/cert.pem"
69 #cert_key = "/path/to/key.pem"
70 #cert_pwd = "secretpassphrase"
71 #ciphers = "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256"
72 }