Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 03c9835

Browse files
scheMeZampociot
authored andcommitted
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.
1 parent aecbfee commit 03c9835

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/websockets.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,18 +102,18 @@
102102
* certificate chain of issuers. The private key also may be contained
103103
* in a separate file specified by local_pk.
104104
*/
105-
'local_cert' => null,
105+
'local_cert' => env('LARAVEL_WEBSOCKETS_SSL_LOCAL_CERT', null),
106106

107107
/*
108108
* Path to local private key file on filesystem in case of separate files for
109109
* certificate (local_cert) and private key.
110110
*/
111-
'local_pk' => null,
111+
'local_pk' => env('LARAVEL_WEBSOCKETS_SSL_LOCAL_PK', null),
112112

113113
/*
114114
* Passphrase for your local_cert file.
115115
*/
116-
'passphrase' => null,
116+
'passphrase' => env('LARAVEL_WEBSOCKETS_SSL_PASSPHRASE', null),
117117
],
118118

119119
/*

0 commit comments

Comments
 (0)