How to set up CDN for website?

neolee98PRO

9 months ago

I'm hosting an WordPress on railway, but since railway doesn't have an static inbound ip, how do I set up CDN for the website?

0 Replies

neolee98PRO

9 months ago

N/A


9 months ago

first, please explain why you need a static outbound ip for wordpress?

second, we do!


neolee98PRO

9 months ago

oh sry, I mean inbound


neolee98PRO

9 months ago

for setting up the CDN for the website


9 months ago

why does that need inbound?


neolee98PRO

9 months ago

the CDN setup I'm looking at needs a source IP


9 months ago

… why?


neolee98PRO

9 months ago

Idk, this domain host ask for it 🤣


9 months ago

… use a different CDN? never heard of needing a static inbound ip


neolee98PRO

9 months ago

oh wait, I found a hidden option that allows domain as source🤣


9 months ago

there ya go!


neolee98PRO

9 months ago

quick follow up question, I have 2 custom domain (www and @) bind to my service, how do I change the RAILWAYPUBLICDOMAIN to the www one


9 months ago

i think it goes off what was added first, but in 2024 why do you need www lol


neolee98PRO

9 months ago

hum, good point, guess I can just ditch www


9 months ago

for sure


neolee98PRO

9 months ago

to be sure, domain -> CDN cname -> railway cname?


9 months ago

can you say what cdn you are using?


neolee98PRO

9 months ago

Tencent Cloud (I hate it too, but no refund)


9 months ago

possibly? never setup that cdn


neolee98PRO

9 months ago

*sight, gonna switch to cloudflare once it expire


9 months ago

good choice


How to set up CDN for website? - Railway Help Station