Skip to content

Commit

Permalink
Update configuration.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed May 14, 2019
1 parent f949497 commit cf5583f
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions config/swarm.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,49 @@
'secure' => env('SWARM_SERVER_SECURE', false),
'options' => [
'tls' => array_filter([
/*
* Path to local certificate file on filesystem. It must be a PEM encoded file which
* contains your certificate and private key. It can optionally contain the
* certificate chain of issuers. The private key also may be contained
* in a separate file specified by local_pk.
*/
'local_cert' => env('SWARM_SERVER_TLS_CERT', null),

/*
* Path to local private key file on filesystem in case of separate files for
* certificate (local_cert) and private key.
*/
'local_pk' => env('SWARM_SERVER_LOCAL_PK', null),

/*
* Passphrase for your local_cert file.
*/
'passphrase' => env('SWARM_SERVER_PASSPHRASE', null),

// 'crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_2_SERVER
]),
],
],


/*
* This array contains the hosts of which you want to allow incoming requests.
* Leave this empty if you want to accept requests from all hosts.
|--------------------------------------------------------------------------
| Allowed Origins
|--------------------------------------------------------------------------
|
| This array contains the hosts of which you want to allow incoming requests.
| Leave this empty if you want to accept requests from all hosts.
*/
'allowed_origins' => [
//
],

/*
* The maximum request size in kilobytes that is allowed for an incoming WebSocket request.
|--------------------------------------------------------------------------
| Request Size
|--------------------------------------------------------------------------
|
| The maximum request size in kilobytes that is allowed for an incoming WebSocket request.
*/
'max_request_size_in_kb' => 250,
];

0 comments on commit cf5583f

Please sign in to comment.