From 03c9835b5d6b102244a35c9fb5b2f3cc71f34122 Mon Sep 17 00:00:00 2001 From: Jadon Date: Sat, 11 May 2019 08:49:40 +0200 Subject: [PATCH] Update websockets.php (#132) Accept SSL certificate paths through `.env` file. This is to support projects that exist as multiple clones of the same repository. `config/websockets.php` is generally tracked by git, making it difficult to pick the unique certificates, per installation. --- config/websockets.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/websockets.php b/config/websockets.php index f453833..cf46545 100644 --- a/config/websockets.php +++ b/config/websockets.php @@ -102,18 +102,18 @@ return [ * certificate chain of issuers. The private key also may be contained * in a separate file specified by local_pk. */ - 'local_cert' => null, + 'local_cert' => env('LARAVEL_WEBSOCKETS_SSL_LOCAL_CERT', null), /* * Path to local private key file on filesystem in case of separate files for * certificate (local_cert) and private key. */ - 'local_pk' => null, + 'local_pk' => env('LARAVEL_WEBSOCKETS_SSL_LOCAL_PK', null), /* * Passphrase for your local_cert file. */ - 'passphrase' => null, + 'passphrase' => env('LARAVEL_WEBSOCKETS_SSL_PASSPHRASE', null), ], /*