Julius Kiekbusch
Ploi provides great insights, such as disabling Supervisor, when not needed (which we did in this case).
Later on we decided to use Laravel Reverb and used the Tab "Laravel > Reverb > Spawn Process". This simply resulted in the error, that the ploi-worker log could not befound, but it showed the "spawned" process in ploi (but it was not really spawned).
So the first problem was, that Supervisor was not running, and therefor the Reverb Process was not spawned as damon. I think it would be best to enable supervisor support, or at least show a warning, that supervisor is not running.
The second problem was regarding the NGINX configuration. I did no expect that I still needed to make changes to the nginx configuration, as it was also not outlined in the documentation: https://ploi.io/documentation/laravel/how-do-i-set-up-the-laravel-reverb-server
I think it would be best to show a warning, that the NGINX configuration needs to be updated, or even better, to automatically update the configuration.
Here is the configuration we are using:
# Laravel Reverb
# The Websocket Client/Laravel Echo would connect and listen to this
location ~ /app/(?<reverbkey>.*) {
proxy_pass http://127.0.0.1:8080/app/$reverbkey;
proxy_http_version 1.1;
proxy_set_header Host $http_host;
proxy_set_header Scheme $scheme;
proxy_set_header SERVER_PORT $server_port;
proxy_set_header REMOTE_ADDR $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
# The Laravel Backend would broadcast to this
location ~ ^/apps/(?<reverbid>[^/]+)/events$ {
proxy_pass http://127.0.0.1:8080/apps/$reverbid/events;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
configuration based on: https://thearkas.medium.com/how-to-set-up-nginx-for-laravel-reverb-the-laravels-websocket-server-5d89638d8366
Supervisor and Nginx Problems when running Laravel Reverb
-
Julius Kiekbusch moved item to project Bugs
2 months ago -
Julius Kiekbusch created the item
2 months ago