| 
									
										
										
										
											2006-03-25 23:50:09 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2020-01-22 10:39:47 -05:00
										 |  |  | ; Asterisk Built-in mini-HTTP server | 
					
						
							| 
									
										
										
										
											2006-03-25 23:50:09 +00:00
										 |  |  | ; | 
					
						
							|  |  |  | ; | 
					
						
							| 
									
										
										
										
											2008-01-07 17:15:11 +00:00
										 |  |  | ; Note about Asterisk documentation: | 
					
						
							|  |  |  | ;   If Asterisk was installed from a tarball, then the HTML documentation should | 
					
						
							|  |  |  | ;   be installed in the static-http/docs directory which is | 
					
						
							|  |  |  | ;   (/var/lib/asterisk/static-http/docs) on linux by default.  If the Asterisk | 
					
						
							|  |  |  | ;   HTTP server is enabled in this file by setting the "enabled", "bindaddr", | 
					
						
							|  |  |  | ;   and "bindport" options, then you should be able to view the documentation | 
					
						
							|  |  |  | ;   remotely by browsing to: | 
					
						
							| 
									
										
										
										
											2008-06-26 01:11:43 +00:00
										 |  |  | ;       http://<server_ip>:<bindport>/static/docs/index.html | 
					
						
							| 
									
										
										
										
											2008-01-07 17:15:11 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2006-03-25 23:50:09 +00:00
										 |  |  | [general] | 
					
						
							|  |  |  | ; | 
					
						
							| 
									
										
										
										
											2015-01-30 17:21:50 +00:00
										 |  |  | ; The name of the server, advertised in both the Server field in HTTP | 
					
						
							|  |  |  | ; response message headers, as well as the <address /> element in certain HTTP | 
					
						
							|  |  |  | ; response message bodies. If not furnished here, "Asterisk/{version}" will be | 
					
						
							|  |  |  | ; used as a default value for the Server header field and the <address /> | 
					
						
							|  |  |  | ; element. Setting this property to a blank value will result in the omission | 
					
						
							|  |  |  | ; of the Server header field from HTTP response message headers and the | 
					
						
							|  |  |  | ; <address /> element from HTTP response message bodies. | 
					
						
							|  |  |  | ; | 
					
						
							|  |  |  | servername=Asterisk | 
					
						
							|  |  |  | ; | 
					
						
							| 
									
										
										
										
											2006-10-22 19:09:25 +00:00
										 |  |  | ; Whether HTTP/HTTPS interface is enabled or not.  Default is no. | 
					
						
							|  |  |  | ; This also affects manager/rawman/mxml access (see manager.conf) | 
					
						
							| 
									
										
										
										
											2006-03-25 23:50:09 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2006-04-01 08:49:54 +00:00
										 |  |  | ;enabled=yes | 
					
						
							| 
									
										
										
										
											2006-03-25 23:50:09 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2010-10-29 20:46:06 +00:00
										 |  |  | ; Address to bind to, both for HTTP and HTTPS. You MUST specify | 
					
						
							|  |  |  | ; a bindaddr in order for the HTTP server to run. There is no | 
					
						
							|  |  |  | ; default value. | 
					
						
							| 
									
										
										
										
											2006-03-25 23:50:09 +00:00
										 |  |  | ; | 
					
						
							|  |  |  | bindaddr=127.0.0.1 | 
					
						
							|  |  |  | ; | 
					
						
							| 
									
										
										
										
											2006-10-22 19:09:25 +00:00
										 |  |  | ; Port to bind to for HTTP sessions (default is 8088) | 
					
						
							| 
									
										
										
										
											2006-03-25 23:50:09 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2006-10-22 19:09:25 +00:00
										 |  |  | ;bindport=8088 | 
					
						
							| 
									
										
										
										
											2006-03-25 23:50:09 +00:00
										 |  |  | ; | 
					
						
							|  |  |  | ; Prefix allows you to specify a prefix for all requests | 
					
						
							| 
									
										
										
										
											2008-06-26 01:11:43 +00:00
										 |  |  | ; to the server.  The default is blank.  If uncommented | 
					
						
							|  |  |  | ; all requests must begin with /asterisk | 
					
						
							| 
									
										
										
										
											2006-03-25 23:50:09 +00:00
										 |  |  | ; | 
					
						
							|  |  |  | ;prefix=asterisk | 
					
						
							| 
									
										
										
										
											2006-12-23 20:13:14 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2011-04-21 18:32:50 +00:00
										 |  |  | ; sessionlimit specifies the maximum number of httpsessions that will be | 
					
						
							|  |  |  | ; allowed to exist at any given time. (default: 100) | 
					
						
							|  |  |  | ; | 
					
						
							|  |  |  | ;sessionlimit=100 | 
					
						
							|  |  |  | ; | 
					
						
							| 
									
										
										
										
											2014-06-12 17:00:08 +00:00
										 |  |  | ; session_inactivity specifies the number of milliseconds to wait for | 
					
						
							|  |  |  | ; more data over the HTTP connection before closing it. | 
					
						
							|  |  |  | ; | 
					
						
							|  |  |  | ; Default: 30000 | 
					
						
							|  |  |  | ;session_inactivity=30000 | 
					
						
							|  |  |  | ; | 
					
						
							| 
									
										
										
										
											2014-07-03 17:16:55 +00:00
										 |  |  | ; session_keep_alive specifies the number of milliseconds to wait for | 
					
						
							|  |  |  | ; the next HTTP request over a persistent connection. | 
					
						
							|  |  |  | ; | 
					
						
							|  |  |  | ; Set to 0 to disable persistent HTTP connections. | 
					
						
							|  |  |  | ; Default: 15000 | 
					
						
							|  |  |  | ;session_keep_alive=15000 | 
					
						
							|  |  |  | ; | 
					
						
							|  |  |  | ; Whether Asterisk should serve static content from static-http | 
					
						
							| 
									
										
										
										
											2006-12-23 20:13:14 +00:00
										 |  |  | ; Default is no. | 
					
						
							|  |  |  | ; | 
					
						
							| 
									
										
										
										
											2020-01-22 10:39:47 -05:00
										 |  |  | ;enable_static=yes | 
					
						
							|  |  |  | ; | 
					
						
							|  |  |  | ; Whether Asterisk should serve a status page showing the running | 
					
						
							|  |  |  | ; configuration of this built-in HTTP server. | 
					
						
							|  |  |  | ; Default is yes. | 
					
						
							|  |  |  | ; | 
					
						
							|  |  |  | ;enable_status=no | 
					
						
							| 
									
										
										
										
											2006-12-23 20:13:14 +00:00
										 |  |  | ; | 
					
						
							|  |  |  | ; Redirect one URI to another.  This is how you would set a | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  | ; default page. | 
					
						
							| 
									
										
										
										
											2006-12-24 21:01:02 +00:00
										 |  |  | ;   Syntax: redirect=<from here> <to there> | 
					
						
							| 
									
										
										
										
											2006-12-23 20:13:14 +00:00
										 |  |  | ; For example, if you are using the Asterisk-gui, | 
					
						
							|  |  |  | ; it is convenient to enable the following redirect: | 
					
						
							|  |  |  | ; | 
					
						
							| 
									
										
										
										
											2009-07-01 19:47:38 +00:00
										 |  |  | ;redirect = / /static/config/index.html | 
					
						
							| 
									
										
										
										
											2006-12-23 20:13:14 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2006-11-27 20:21:40 +00:00
										 |  |  | ; HTTPS support. In addition to enabled=yes, you need to | 
					
						
							| 
									
										
										
										
											2009-04-29 14:39:48 +00:00
										 |  |  | ; explicitly enable tls, define the port to use, | 
					
						
							| 
									
										
										
										
											2006-10-22 19:09:25 +00:00
										 |  |  | ; and have a certificate somewhere. | 
					
						
							| 
									
										
										
										
											2009-04-29 14:39:48 +00:00
										 |  |  | ;tlsenable=yes          ; enable tls - default no. | 
					
						
							| 
									
										
										
										
											2012-02-02 18:55:05 +00:00
										 |  |  | ;tlsbindaddr=0.0.0.0:8089    ; address and port to bind to - default is bindaddr and port 8089. | 
					
						
							| 
									
										
										
										
											2009-04-29 14:39:48 +00:00
										 |  |  | ; | 
					
						
							|  |  |  | ;tlscertfile=</path/to/certificate.pem>  ; path to the certificate file (*.pem) only. | 
					
						
							|  |  |  | ;tlsprivatekey=</path/to/private.pem>    ; path to private key file (*.pem) only. | 
					
						
							|  |  |  | ; If no path is given for tlscertfile or tlsprivatekey, default is to look in current | 
					
						
							|  |  |  | ; directory. If no tlsprivatekey is given, default is to search tlscertfile for private key. | 
					
						
							| 
									
										
										
										
											2009-04-24 21:22:31 +00:00
										 |  |  | ; | 
					
						
							|  |  |  | ; To produce a certificate you can e.g. use openssl. This places both the cert and | 
					
						
							|  |  |  | ; private in same .pem file. | 
					
						
							|  |  |  | ; openssl req -new -x509 -days 365 -nodes -out /tmp/foo.pem -keyout /tmp/foo.pem | 
					
						
							| 
									
										
										
										
											2006-10-22 19:09:25 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2016-02-03 14:05:20 -04:00
										 |  |  | ; tlscipher=                             ; The list of allowed ciphers | 
					
						
							|  |  |  | ;                                        ; if none are specified the following cipher | 
					
						
							|  |  |  | ;                                        ; list will be used instead: | 
					
						
							|  |  |  | ; ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384: | 
					
						
							|  |  |  | ; ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256: | 
					
						
							|  |  |  | ; kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA: | 
					
						
							|  |  |  | ; ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384: | 
					
						
							|  |  |  | ; ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA: | 
					
						
							|  |  |  | ; DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA: | 
					
						
							|  |  |  | ; AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA: | 
					
						
							|  |  |  | ; AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH: | 
					
						
							|  |  |  | ; !EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA | 
					
						
							|  |  |  | ; | 
					
						
							|  |  |  | ; tlsdisablev1=yes                ; Disable TLSv1 support - if not set this defaults to "yes" | 
					
						
							|  |  |  | ; tlsdisablev11=yes               ; Disable TLSv1.1 support - if not set this defaults to "no" | 
					
						
							|  |  |  | ; tlsdisablev12=yes               ; Disable TLSv1.2 support - if not set this defaults to "no" | 
					
						
							|  |  |  | ; | 
					
						
							|  |  |  | ; tlsservercipherorder=yes        ; Use the server preference order instead of the client order | 
					
						
							|  |  |  | ;                                 ; Defaults to "yes" | 
					
						
							|  |  |  | ; | 
					
						
							| 
									
										
										
										
											2007-04-06 21:16:38 +00:00
										 |  |  | ; The post_mappings section maps URLs to real paths on the filesystem.  If a | 
					
						
							|  |  |  | ; POST is done from within an authenticated manager session to one of the | 
					
						
							|  |  |  | ; configured POST mappings, then any files in the POST will be placed in the | 
					
						
							|  |  |  | ; configured directory. | 
					
						
							|  |  |  | ; | 
					
						
							|  |  |  | ;[post_mappings] | 
					
						
							|  |  |  | ; | 
					
						
							| 
									
										
										
										
											2014-07-03 17:16:55 +00:00
										 |  |  | ; NOTE: You need a valid HTTP AMI mansession_id cookie with the manager | 
					
						
							|  |  |  | ; config permission to POST files. | 
					
						
							|  |  |  | ; | 
					
						
							| 
									
										
										
										
											2007-04-06 21:16:38 +00:00
										 |  |  | ; In this example, if the prefix option is set to "asterisk", then using the | 
					
						
							|  |  |  | ; POST URL: /asterisk/uploads will put files in /var/lib/asterisk/uploads/. | 
					
						
							|  |  |  | ;uploads = /var/lib/asterisk/uploads/ | 
					
						
							|  |  |  | ; |