Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

AffData's avatar

Horizon and Reverb on Forge

Hey there,

We're changing our monolith infrastructure to a microservice-like approach with a load balancer and separate servers for various tasks.

There are two things that are unclear:

Horizon

I have created a worker server and activated Horizon on that server. But how do I configure the .env to have all the jobs go through Horizon on that worker server? This is what I have in the .env:

BROADCAST_CONNECTION=reverb
CACHE_DRIVER=redis
QUEUE_CONNECTION=redis

I have the redis running on a separate Cache server. But how do I tell my app to connect to the Worker server for jobs when running with Horizon?

Reverb

Do I set a new Web server with the same source branch and set Reverb's .env config for all the web servers and Reverb's server to be the same (app id, key, secret, etc)? Also do I need to create an SSL certificate for the REVERB_HOST subdomain (ws.) on the Reverb server?

0 likes
1 reply
dodgyrodgy's avatar

Hi, did you ever come right? I have the exact same setup. I got the worker with redis working but am struggling to get the Reverb side working through a load balancer.

Please or to participate in this conversation.