How to set up CDN for website?

neolee98
PRO

a year 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

neolee98
PRO

a year ago

N/A


a year ago

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

second, we do!


neolee98
PRO

a year ago

oh sry, I mean inbound


neolee98
PRO

a year ago

for setting up the CDN for the website


a year ago

why does that need inbound?


neolee98
PRO

a year ago

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


a year ago

… why?


neolee98
PRO

a year ago

Idk, this domain host ask for it 🤣


a year ago

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


neolee98
PRO

a year ago

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


a year ago

there ya go!


neolee98
PRO

a year 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


a year ago

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


neolee98
PRO

a year ago

hum, good point, guess I can just ditch www


a year ago

for sure


neolee98
PRO

a year ago

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


a year ago

can you say what cdn you are using?


neolee98
PRO

a year ago

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


a year ago

possibly? never setup that cdn


neolee98
PRO

a year ago

*sight, gonna switch to cloudflare once it expire


a year ago

good choice


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