PHP FPM Laravel Majestic Monolith Port Configuration
alex-bytes
PROOP

a year ago

I switched my laravel setup from a dockerfile deployment to following the "Majestic Monolith" guide in the docs. So far so good, but it seems now my stripe webhook endpoints cannot be reached. They used to when I ran php artisan serve instead with apache.

Is it possible that stripe is using ipv6 and the nginx php-fpm configuration default from railway doesn't support public ipv6? If so, how can I go about solving this?

Solved

24 Replies

alex-bytes
PROOP

a year ago

cdf1815d-d3de-4820-866b-7fea03248e92


a year ago

Railway itself is IPv4 only for the public domains, but I highly doubt Stripe is IPv6 only.


a year ago

can you link the service in question please?


alex-bytes
PROOP

a year ago

Sorry, what do you mean by service? I guess this was just my assumption since simply changing the setup made the webhooks no longer work


alex-bytes
PROOP

a year ago

Okay nevermind stripe is ipv4 for sure..


alex-bytes
PROOP

a year ago

If everything else has been working after the migration but this webhook, where should I start to dig? Is it possible this is a port issue?


alex-bytes
PROOP

a year ago

I've been struggling with the port config trying to set this up


alex-bytes
PROOP

a year ago

I had to set the custom port to 8080 since that seems to be the port NGINX is running on from what I can see in the deploy logs and only then was my app responding and working. However there's an option that would allow me to use port 9000

1349401619883884500


alex-bytes
PROOP

a year ago

Though when I do, I can no longer access the public url


alex-bytes
PROOP

a year ago

I figure there might be a mismatch here..?


alex-bytes
PROOP

a year ago

oh my, I figured it out..


alex-bytes
PROOP

a year ago

indeed it was just that


alex-bytes
PROOP

a year ago

a port mismatch


alex-bytes
PROOP

a year ago

the webhook url was set up to be sent to the railway default address which was still set to 80


alex-bytes
PROOP

a year ago

But maybe one final clarification, what's up with that 9000 port and do I even need it? NGINX seems to start on 8080 and everything works properly through that port


a year ago

> what do you mean by service?


a year ago

thats php-fpm, you can think of it as the php interpreter, it runs on port 9000 and nginx makes requests to it via that port internally, but you should ignore it here, you do want port 8080 set


alex-bytes
PROOP

a year ago

Alright, thanks for the info!


a year ago

so to re-cap, you are all good now that the port is set to 8080


alex-bytes
PROOP

a year ago

awesome. very new to this so I appreciate the help


alex-bytes
PROOP

a year ago

Might want to change the title to better reflect the actual issue?


a year ago

be my guest


alex-bytes
PROOP

a year ago

PHP FPM Laravel Majestic Monolith Port Configuration


a year ago

!s


Status changed to Solved brody 12 months ago


Loading...