PHP FPM Laravel Majestic Monolith Port Configuration
alex-bytes
PROOP

9 months 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

0 Replies

alex-bytes
PROOP

9 months ago

cdf1815d-d3de-4820-866b-7fea03248e92


brody
EMPLOYEE

9 months ago

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


brody
EMPLOYEE

9 months ago

can you link the service in question please?


alex-bytes
PROOP

9 months 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

9 months ago

Okay nevermind stripe is ipv4 for sure..


alex-bytes
PROOP

9 months 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

9 months ago

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


alex-bytes
PROOP

9 months 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

9 months ago

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


alex-bytes
PROOP

9 months ago

I figure there might be a mismatch here..?


alex-bytes
PROOP

9 months ago

oh my, I figured it out..


alex-bytes
PROOP

9 months ago

indeed it was just that


alex-bytes
PROOP

9 months ago

a port mismatch


alex-bytes
PROOP

9 months ago

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


alex-bytes
PROOP

9 months 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


brody
EMPLOYEE

9 months ago

> what do you mean by service?


brody
EMPLOYEE

9 months 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

9 months ago

Alright, thanks for the info!


brody
EMPLOYEE

9 months ago

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


alex-bytes
PROOP

9 months ago

awesome. very new to this so I appreciate the help


alex-bytes
PROOP

9 months ago

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


brody
EMPLOYEE

9 months ago

be my guest


alex-bytes
PROOP

9 months ago

PHP FPM Laravel Majestic Monolith Port Configuration


brody
EMPLOYEE

9 months ago

!s


Status changed to Solved brody 9 months ago


Loading...