From cf5583f0d22e9de51d8dd6af664bcb2a3df2bad0 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Tue, 14 May 2019 08:48:47 +0800 Subject: [PATCH] Update configuration. Signed-off-by: Mior Muhammad Zaki --- config/swarm.php | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/config/swarm.php b/config/swarm.php index 7c9d5ca..dd3c2e0 100644 --- a/config/swarm.php +++ b/config/swarm.php @@ -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, ];