http.conf.sample 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. ;
  2. ; Asterisk Builtin 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. ;enablestatic=yes
  69. ;
  70. ; Redirect one URI to another. This is how you would set a
  71. ; default page.
  72. ; Syntax: redirect=<from here> <to there>
  73. ; For example, if you are using the Asterisk-gui,
  74. ; it is convenient to enable the following redirect:
  75. ;
  76. ;redirect = / /static/config/index.html
  77. ;
  78. ; HTTPS support. In addition to enabled=yes, you need to
  79. ; explicitly enable tls, define the port to use,
  80. ; and have a certificate somewhere.
  81. ;tlsenable=yes ; enable tls - default no.
  82. ;tlsbindaddr=0.0.0.0:8089 ; address and port to bind to - default is bindaddr and port 8089.
  83. ;
  84. ;tlscertfile=</path/to/certificate.pem> ; path to the certificate file (*.pem) only.
  85. ;tlsprivatekey=</path/to/private.pem> ; path to private key file (*.pem) only.
  86. ; If no path is given for tlscertfile or tlsprivatekey, default is to look in current
  87. ; directory. If no tlsprivatekey is given, default is to search tlscertfile for private key.
  88. ;
  89. ; To produce a certificate you can e.g. use openssl. This places both the cert and
  90. ; private in same .pem file.
  91. ; openssl req -new -x509 -days 365 -nodes -out /tmp/foo.pem -keyout /tmp/foo.pem
  92. ;
  93. ; tlscipher= ; The list of allowed ciphers
  94. ; ; if none are specified the following cipher
  95. ; ; list will be used instead:
  96. ; ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:
  97. ; ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:
  98. ; kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:
  99. ; ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:
  100. ; ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:
  101. ; DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:
  102. ; AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:
  103. ; AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:
  104. ; !EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
  105. ;
  106. ; tlsdisablev1=yes ; Disable TLSv1 support - if not set this defaults to "yes"
  107. ; tlsdisablev11=yes ; Disable TLSv1.1 support - if not set this defaults to "no"
  108. ; tlsdisablev12=yes ; Disable TLSv1.2 support - if not set this defaults to "no"
  109. ;
  110. ; tlsservercipherorder=yes ; Use the server preference order instead of the client order
  111. ; ; Defaults to "yes"
  112. ;
  113. ; The post_mappings section maps URLs to real paths on the filesystem. If a
  114. ; POST is done from within an authenticated manager session to one of the
  115. ; configured POST mappings, then any files in the POST will be placed in the
  116. ; configured directory.
  117. ;
  118. ;[post_mappings]
  119. ;
  120. ; NOTE: You need a valid HTTP AMI mansession_id cookie with the manager
  121. ; config permission to POST files.
  122. ;
  123. ; In this example, if the prefix option is set to "asterisk", then using the
  124. ; POST URL: /asterisk/uploads will put files in /var/lib/asterisk/uploads/.
  125. ;uploads = /var/lib/asterisk/uploads/
  126. ;