Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel reverb config tls variables #105

Closed
vatsake opened this issue Mar 20, 2024 · 2 comments
Closed

Laravel reverb config tls variables #105

vatsake opened this issue Mar 20, 2024 · 2 comments
Assignees

Comments

@vatsake
Copy link

vatsake commented Mar 20, 2024

In my dev I'm using a self signed certificate, so I have to put the cert path in .env.
In my production there's a nginx reverse proxy, so I don't need a certificate in my .env.

But the problem is if the options "tls" is NOT empty then the server will run in secure mode.

Servers/Reverb/Factory.php L54

$uri = empty($options['tls']) ? "{$host}:{$port}" : "tls://{$host}:{$port}";

My reverb.php config

'servers' => [
        'reverb' => [
           ...
            'options' => [
                'tls' => [ //tls is ALWAYS not empty
                    'local_cert' =>env('REVERB_CERT')
                ],
            ],
        ]
]
@joedixon
Copy link
Collaborator

Thanks, I'll get a fix up for this as soon as I can.

@joedixon
Copy link
Collaborator

This should be resolved in the next release: #85

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants