In the same server i have 1 project that uses reverb and works fine:
first.example.cat
now i'm adding a new project:
second.example.cat
in the nginx config of first.example.cat i have a proxy which handles reverb requests:
location /app {
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:8080;
}
and in .env:
REVERB_PORT=443
REVERB_SCHEME=https```
for the new one i tried different things, but all of them end up with the error (`storage/logs/reverb.log`):
```php
Failed to listen on "tcp://0.0.0.0:8080": Address already in use (EADDRINUSE)```
which is pretty obvious but i dont understand how to solve
the things i tried are:
1- set the same nginx config as first.example.cat
2- set a different port -> proxy_pass http://0.0.0.0:8081;
3- in -env change the port to REVERB_PORT=8081
but none of them work, i get same error
how to make the two to work?
(every time i make a change, i do npm run build & restart nginx & php artisan optimize:clear & i restart the reverb process. the first project always work, the 2nd one, never, i always get that address already in use error)