502 Bad Gateway after connecting Meilisearch Service
kinguk
HOBBYOP

2 years ago

I added a Meilisearch service to my enviroment, then added the RAILWAY_PUBLIC_DOMAIN variable to my env variables for my main application.

Checking http logs I see this:

"failed to forward request to upstream: connection refused"

Solved

6 Replies

2 years ago


kinguk
HOBBYOP

2 years ago

Hi Brody,

Thanks, I have read the docs page but couldn't work out how this was related to my issue. I never had to define a port for my main app before


2 years ago

Please see the image in the docs, that is the same error page you are getting when you open your domain.

Please follow the docs solution.


kinguk
HOBBYOP

2 years ago

Are there any docs to help with using NIXPACKS? I have searched for the last hour and cannot find anything that can help.

I updated the vite config for my laravel app to use port 3000 and host 0.0.0.0 but still getting the same error.


2 years ago

The issue here is that your start command does not start the web server, please remove it.


kinguk
HOBBYOP

2 years ago

Ah! That’s it, thank you Brody.


Status changed to Solved brody over 1 year ago


Loading...