I have a message:
pusher error: The POST method is not supported for route apps/387120/events. Supported methods: GET, HEAD.
When I use Laravel Reverb in server. Everything was fine on the local version.
There is no proper routing, only what if I use:
Laravel 11, Livewire 3 && Reverb
I use a VPS with a HestiaCP panel.
.env
REVERB_APP_ID=387120
REVERB_APP_KEY=uxbvxeoyb3kuhkcsi1cm
REVERB_APP_SECRET=j6vuzgbu74asbwjwuxhy
REVERB_HOST="domena.pl"
REVERB_PORT=443
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}"
REVERB_SERVER_HOST=0.0.0.0
REVERB_SERVER_PORT=8181
nginx.conf
listen 443 ssl http2;
listen [::]:443 ssl http2;
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://0.0.0.0:8181;
Do I need to set anything else?
Changing the port to 8181 and adding ssl.
New contributor
pawlo896 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.