- On My Server i setup PORT
44444
as my Custom PORT - check if it is not used on your server
sudo netstat -ntlp
- On my Instance i Opened port
44444
on My GCP Console Firewall - on Your
NGINX
set up to listen to port44444
- here is my NGINX config to listen to
44444
on my domain - I created a separte
server block for the ws calls
server{
listen 44444 ssl;
ssl_certificate /path/to/fullchain.pem; # managed by Certbot
ssl_certificate_key /path/to/privatekey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
location / {
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";
proxy_pass http://127.0.0.1:8080;
}
}
REVERB_APP_ID=*****
REVERB_APP_KEY=*****
REVERB_APP_SECRET=*****
REVERB_HOST=your-domain-here.com
REVERB_PORT=44444
REVERB_SCHEME=https
VITE_REVERB_APP_KEY="${REVERB_APP_KEY}"
VITE_REVERB_HOST="${REVERB_HOST}"
VITE_REVERB_PORT="${REVERB_PORT}"
VITE_REVERB_SCHEME="${REVERB_SCHEME}"
Run the REVERB via artisan (debug so we can check connections)
php artisan reverb:start --debug --host=127.0.0.1
You can check if it works via postman