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

Doud's avatar
Level 1

Scaling Reverb on external Forge server

Hi!

Because my app is hosted on Vapor (and I don't plan on changing this for now), I am trying to host a Reverb server on Forge. That site only purpose will be to be the websocket server.

I cannot find any documentation about a setup like this and as I am beginning with websockets, I have a very hard time understanding what I am supposed to do.

Just for understanding :

  • "Reverb" will be the Reverb server hosted on Forge

  • "App" will be our application hosted on Vapor

  • I am using Postman for now to test all this

  • Reverb is properly setup, I can connect to it from Postman, also subscribe to event

  • I am NOT able to send event from the app to Reverb. The Reverb's logs (--debug enabled) doesn't say anything. But, from the app, I don't have any error message when I trigger the event

.env on the app:

REVERB_APP_ID=111111
REVERB_APP_KEY=XXXXX
REVERB_APP_SECRET=XXXXX
REVERB_HOST=ws.xx.tech
REVERB_PORT=443
REVERB_SCHEME="https"

.env on Reverb

REVERB_APP_ID=111111
REVERB_APP_KEY=XXXXX
REVERB_APP_SECRET=XXXXX
REVERB_HOST=ws.xx.tech
REVERB_PORT=443
REVERB_SCHEME="https"

Here are some of the elements I am having hard time understanding :

  • Where are the channels supposed to be configured? App or Reverb?
  • How to use REVERB_SCALING_ENABLED ? I read somewhere that App and Reverb are supposed to share the same Redis?
  • Some for the events, are they supposed to be on the App or Reverb?

Did I miss any good documentation about this? The Reverb doc says very little about a setup like this.

Thanks for your help! Ed

0 likes
0 replies

Please or to participate in this conversation.