A proof of Concept of the Laravel Reverb package to start a online consulting platform. Consultline is a web application that allows users to ask question and get realtime answers, the site uses browser notifications to get notified.
- Create a free account: without setting a password.
- Login via e-mail: 1 click login via e-mail.
- Realtime Chat: Receive fast replies via a realtime chat.
Us the generateVapidKeys.js to set the VAPID_PUBLIC_KEY and VAPID_PRIVATE_KEY in the .env file.
Add the following configuration to your nginx configuration file:
# Laravel Reverb
# The Websocket Client/Laravel Echo would connect and listen to this
location ~ /app/ { # variable reverbkey
proxy_pass http://127.0.0.1:8080;
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/ { # variable reverbid
proxy_pass http://127.0.0.1:8080;
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;
}
The Laravel framework is open-sourced software licensed under the MIT license.