Guest User

Untitled

a guest
Jul 21st, 2013
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.00 KB | None | 0 0
  1. <?php
  2. $config = [
  3.         // All Shared settings
  4.         'shared' => [
  5.                 'listenOn' => '*:1337', // Default port
  6.                 'logErrorsTo' => 'php://stderr'
  7.         ],
  8.         'hosts' => [
  9.                 'http' => [
  10.                        
  11.                         'defaultContentType' => 'text/html',
  12.                         'defaultTextCharset' => 'utf-8',
  13.                         'allowedMethods' => [
  14.                                 'GET',
  15.                                 'HEAD',
  16.                                 'OPTIONS',
  17.                                 'POST',
  18.                                 'PUT',
  19.                                 'PATCH',
  20.                                 'TRACE',
  21.                                 'DELETE'
  22.                         ],
  23.                         'application' => $webApp
  24.                 ]
  25.                 ,
  26.                 'https' => [
  27.                         'listenOn' => '*:1443', // TSL Port
  28.                         'local_cert' => __DIR__ . '/support/localhost_cert.pem',
  29.                         'passphrase' => '42 is not a legitimate passphrase',
  30.                         'application' => $webApp
  31.                 ],
  32.                 'websocket' => [
  33.                         'application' => $webSocket
  34.                 ],
  35.                 'socket' => [
  36.                         'upgradeToken' => 'line-feed-chat',
  37.                         'application' => $socketApp
  38.                 ],
  39.                 'webrct' => [
  40.                         'signaling' => '0xsend_receive',
  41.                         'application' => $signalApp
  42.                 ]
  43.         ]
  44. ];
  45.  
  46. ?>
Advertisement
Add Comment
Please, Sign In to add comment