Statistics
| Branch: | Revision:

janus-gateway / conf / janus.transport.http.cfg.sample.in @ 892e86ab

History | View | Annotate | Download (3.62 KB)

1
; Web server stuff: whether any should be enabled, which ports they
2
; should use, whether security should be handled directly or demanded to
3
; an external application (e.g., web frontend) and what should be the
4
; base path for the Janus API protocol. You can also specify the
5
; threading model to use for the HTTP webserver: by default this is
6
; 'unlimited' (which means a thread per connection, as specified by the
7
; libmicrohttpd documentation), using a number will make use of a thread
8
; pool instead. Since long polls are involved, make sure you choose a
9
; value that doesn't keep new connections waiting. Notice that by default
10
; all the web servers will try and bind on both IPv4 and IPv6: if you
11
; want to only bind to IPv4 addresses (e.g., because your system does not
12
; support IPv6), you should set the web server 'ip' property to '0.0.0.0'.
13
[general]
14
json = indented				; Whether the JSON messages should be indented (default),
15
							; plain (no indentation) or compact (no indentation and no spaces)
16
base_path = /janus			; Base path to bind to in the web server (plain HTTP only)
17
threads = unlimited			; unlimited=thread per connection, number=thread pool
18
http = yes					; Whether to enable the plain HTTP interface
19
port = 8088					; Web server HTTP port
20
;interface = eth0			; Whether we should bind this server to a specific interface only
21
;ip = 192.168.0.1			; Whether we should bind this server to a specific IP address (v4 or v6) only
22
https = no					; Whether to enable HTTPS (default=no)
23
;secure_port = 8089			; Web server HTTPS port, if enabled
24
;secure_interface = eth0	; Whether we should bind this server to a specific interface only
25
;secure_ip = 192.168.0.1	; Whether we should bind this server to a specific IP address (v4 or v6) only
26
;acl = 127.,192.168.0.		; Only allow requests coming from this comma separated list of addresses
27

    
28
; Janus can also expose an admin/monitor endpoint, to allow you to check
29
; which sessions are up, which handles they're managing, their current
30
; status and so on. This provides a useful aid when debugging potential
31
; issues in Janus. The configuration is pretty much the same as the one
32
; already presented above for the webserver stuff, as the API is very
33
; similar: choose the base bath for the admin/monitor endpoint (/admin
34
; by default), ports, threading model, etc. Besides, you can specify
35
; a secret that must be provided in all requests as a crude form of
36
; authorization mechanism, and partial or full source IPs if you want to
37
; limit access basing on IP addresses. For security reasons, this
38
; endpoint is disabled by default, enable it by setting admin_http=yes.
39
[admin]
40
admin_base_path = /admin		; Base path to bind to in the admin/monitor web server (plain HTTP only)
41
admin_threads = unlimited		; unlimited=thread per connection, number=thread pool
42
admin_http = no					; Whether to enable the plain HTTP interface
43
admin_port = 7088				; Admin/monitor web server HTTP port
44
;admin_interface = eth0			; Whether we should bind this server to a specific interface only
45
;admin_ip = 192.168.0.1			; Whether we should bind this server to a specific IP address (v4 or v6) only
46
admin_https = no				; Whether to enable HTTPS (default=no)
47
;admin_secure_port = 7889		; Admin/monitor web server HTTPS port, if enabled
48
;admin_secure_interface = eth0	; Whether we should bind this server to a specific interface only
49
;admin_secure_ip = 192.168.0.1	; Whether we should bind this server to a specific IP address (v4 or v6) only
50
;admin_acl = 127.,192.168.0.	; Only allow requests coming from this comma separated list of addresses
51

    
52

    
53
; Certificate and key to use for HTTPS.
54
[certificates]
55
cert_pem = @certdir@/mycert.pem
56
cert_key = @certdir@/mycert.key