Debian Codegraph @

configs/samples/http.conf.sample

raw
1 ;
2 ; Asterisk Built-in mini-HTTP server
3 ;
4 ;
5 ; Note about Asterisk documentation:
6 ; If Asterisk was installed from a tarball, then the HTML documentation should
7 ; be installed in the static-http/docs directory which is
8 ; (/var/lib/asterisk/static-http/docs) on linux by default. If the Asterisk
9 ; HTTP server is enabled in this file by setting the "enabled", "bindaddr",
10 ; and "bindport" options, then you should be able to view the documentation
11 ; remotely by browsing to:
12 ; http://<server_ip>:<bindport>/static/docs/index.html
13 ;
14 [general]
15 ;
16 ; The name of the server, advertised in both the Server field in HTTP
17 ; response message headers, as well as the <address /> element in certain HTTP
18 ; response message bodies. If not furnished here, "Asterisk/{version}" will be
19 ; used as a default value for the Server header field and the <address />
20 ; element. Setting this property to a blank value will result in the omission
21 ; of the Server header field from HTTP response message headers and the
22 ; <address /> element from HTTP response message bodies.
23 ;
24 servername=Asterisk
25 ;
26 ; Whether HTTP/HTTPS interface is enabled or not. Default is no.
27 ; This also affects manager/rawman/mxml access (see manager.conf)
28 ;
29 ;enabled=yes
30 ;
31 ; Address to bind to, both for HTTP and HTTPS. You MUST specify
32 ; a bindaddr in order for the HTTP server to run. There is no
33 ; default value.
34 ;
35 bindaddr=127.0.0.1
36 ;
37 ; Port to bind to for HTTP sessions (default is 8088)
38 ;
39 ;bindport=8088
40 ;
41 ; Prefix allows you to specify a prefix for all requests
42 ; to the server. The default is blank. If uncommented
43 ; all requests must begin with /asterisk
44 ;
45 ;prefix=asterisk
46 ;
47 ; sessionlimit specifies the maximum number of httpsessions that will be
48 ; allowed to exist at any given time. (default: 100)
49 ;
50 ;sessionlimit=100
51 ;
52 ; session_inactivity specifies the number of milliseconds to wait for
53 ; more data over the HTTP connection before closing it.
54 ;
55 ; Default: 30000
56 ;session_inactivity=30000
57 ;
58 ; session_keep_alive specifies the number of milliseconds to wait for
59 ; the next HTTP request over a persistent connection.
60 ;
61 ; Set to 0 to disable persistent HTTP connections.
62 ; Default: 15000
63 ;session_keep_alive=15000
64 ;
65 ; Whether Asterisk should serve static content from static-http
66 ; Default is no.
67 ;
68 ;enable_static=yes
69 ;
70 ; Whether Asterisk should serve a status page showing the running
71 ; configuration of this built-in HTTP server.
72 ; Default is no.
73 ;
74 ;enable_status=yes
75 ;
76 ; Redirect one URI to another. This is how you would set a
77 ; default page.
78 ; Syntax: redirect=<from here> <to there>
79 ; For example, if you are using the Asterisk-gui,
80 ; it is convenient to enable the following redirect:
81 ;
82 ;redirect = / /static/config/index.html
83 ;
84 ; HTTPS support. In addition to enabled=yes, you need to
85 ; explicitly enable tls, define the port to use,
86 ; and have a certificate somewhere.
87 ;tlsenable=yes ; enable tls - default no.
88 ;tlsbindaddr=0.0.0.0:8089 ; address and port to bind to - default is bindaddr and port 8089.
89 ;
90 ;tlscertfile=</path/to/certificate.pem> ; path to the certificate file (*.pem) only.
91 ;tlsprivatekey=</path/to/private.pem> ; path to private key file (*.pem) only.
92 ; If no path is given for tlscertfile or tlsprivatekey, default is to look in current
93 ; directory. If no tlsprivatekey is given, default is to search tlscertfile for private key.
94 ;
95 ; To produce a certificate you can e.g. use openssl. This places both the cert and
96 ; private in same .pem file.
97 ; openssl req -new -x509 -days 365 -nodes -out /tmp/foo.pem -keyout /tmp/foo.pem
98 ;
99 ; tlscipher= ; The list of allowed ciphers
100 ; ; if none are specified the following cipher
101 ; ; list will be used instead:
102 ; ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:
103 ; ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:
104 ; kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:
105 ; ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:
106 ; ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:
107 ; DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:
108 ; AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:
109 ; AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:
110 ; !EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
111 ;
112 ; tlsdisablev1=yes ; Disable TLSv1 support - if not set this defaults to "yes"
113 ; tlsdisablev11=yes ; Disable TLSv1.1 support - if not set this defaults to "no"
114 ; tlsdisablev12=yes ; Disable TLSv1.2 support - if not set this defaults to "no"
115 ;
116 ; tlsservercipherorder=yes ; Use the server preference order instead of the client order
117 ; ; Defaults to "yes"
118 ;
119 ; The post_mappings section maps URLs to real paths on the filesystem. If a
120 ; POST is done from within an authenticated manager session to one of the
121 ; configured POST mappings, then any files in the POST will be placed in the
122 ; configured directory.
123 ;
124 ;[post_mappings]
125 ;
126 ; NOTE: You need a valid HTTP AMI mansession_id cookie with the manager
127 ; config permission to POST files.
128 ;
129 ; In this example, if the prefix option is set to "asterisk", then using the
130 ; POST URL: /asterisk/uploads will put files in /var/lib/asterisk/uploads/.
131 ;uploads = /var/lib/asterisk/uploads/
132 ;
133
134 ;[uripath]
135 ;
136 ;type = restriction ; Specifies acl configuration
137 ;
138 ; The following options (permit, deny, acl) allow for an acl to be configured
139 ; on a per uri prefix basis. The first character should be an '/'
140 ;
141 ; The format follows the rules as documented in acl.conf.sample
142 ;
143 ; If no restriction is defined for a given prefix, legacy behavior will apply.
144 ;
145 ; If multiple restrictions apply, any restriction that denies will supersede
146 ; any another restrictions that permit. For example if an /ari restriction
147 ; results in a deny, but an /ari/channels restriction would permit, the
148 ; attempt would still be denied.
149 ;
150 ;deny = ; Deny the subnet access for the given user
151 ;permit = ; Permit the subnet(s) access for the given user
152 ;acl = ; Optional name for the acl.
153 ;
154 ;Examples:
155 ;
156 ; Only allow ari connections from localhost:
157 ;
158 ;[/ari]
159 ;type = restriction
160 ;deny = 0.0.0.0/0
161 ;permit = 127.0.0.1
162 ;acl = localarionly
163 ;
164 ; Only allow metrics to be gathered by 10.0.0.23
165 ;
166 ;[/metrics]
167 ;type = restriction
168 ;deny = 0.0.0.0/0
169 ;permit = 10.0.0.23
170 ;