Need Assistance Setting Up a Custom Public Domain for Webhook Payloads

nickolaydimitrov
HOBBY

5 months ago

Hi everyone,

I’m currently hosting my FastAPI backend on Railway, and I need to set up a custom public domain URL specifically to receive Stripe webhook payloads. My front end is managed with Webflow at scoremyinterview.com, but Webflow cannot directly handle Stripe webhook requests. Therefore, I want to have a dedicated subdomain (e.g., api.scoremyinterview.com) that points directly to my Railway deployment.

I’m facing an issue where my current attempts via Cloudflare result in SSL certificate errors because Railway’s default certificate doesn’t seem to cover my custom domain. I would like guidance on how to properly configure a custom domain for my Railway project so that it:

  1. Is publicly accessible (e.g., api.scoremyinterview.com).

  2. Provides a valid SSL certificate (using Let’s Encrypt or another method) for that custom domain.

  3. Properly routes POST requests to my FastAPI webhook endpoint (/stripe/webhook) for Stripe events.

Any help or documentation on setting up custom domains with Railway for backend services would be greatly appreciated.

Thank you!
Nick

Solved

3 Replies

5 months ago

Hello,

If you want the api.scoremyinterview.com domain to work with your Railway service, you would first need to add it as a custom domain to the service, this can be done from within the service settings.

Best,
Brody


Status changed to Awaiting User Response Railway 5 months ago


brody

Hello,If you want the api.scoremyinterview.com domain to work with your Railway service, you would first need to add it as a custom domain to the service, this can be done from within the service settings.Best,Brody

nickolaydimitrov
HOBBY

5 months ago

Thank you, Brody,

I had looked and looked for where is the exact location under project settings to add the custom domain but couldn’t find it.

Could you please give me the path from project settings on how to get there?

Thank you again.

Nick.


Status changed to Awaiting Railway Response Railway 5 months ago



Status changed to Awaiting User Response Railway 5 months ago


Status changed to Solved nickolaydimitrov 5 months ago