R
Railway•4mo ago
NEO

How to set up CDN for website?

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?
21 Replies
Percy
Percy•4mo ago
Project ID: N/A
NEO
NEOOP•4mo ago
N/A
Brody
Brody•4mo ago
first, please explain why you need a static outbound ip for wordpress? second, we do! https://docs.railway.app/reference/static-outbound-ips
NEO
NEOOP•4mo ago
oh sry, I mean inbound for setting up the CDN for the website
Brody
Brody•4mo ago
why does that need inbound?
NEO
NEOOP•4mo ago
the CDN setup I'm looking at needs a source IP
Brody
Brody•4mo ago
... why?
NEO
NEOOP•4mo ago
Idk, this domain host ask for it 🤣
Brody
Brody•4mo ago
... use a different CDN? never heard of needing a static inbound ip
NEO
NEOOP•4mo ago
oh wait, I found a hidden option that allows domain as source🤣
Brody
Brody•4mo ago
there ya go!
NEO
NEOOP•4mo ago
quick follow up question, I have 2 custom domain (www and @) bind to my service, how do I change the RAILWAY_PUBLIC_DOMAIN to the www one
Brody
Brody•4mo ago
i think it goes off what was added first, but in 2024 why do you need www lol
NEO
NEOOP•4mo ago
hum, good point, guess I can just ditch www
Brody
Brody•4mo ago
for sure
NEO
NEOOP•4mo ago
to be sure, domain -> CDN cname -> railway cname?
Brody
Brody•4mo ago
can you say what cdn you are using?
NEO
NEOOP•4mo ago
Tencent Cloud (I hate it too, but no refund)
Brody
Brody•4mo ago
possibly? never setup that cdn
NEO
NEOOP•4mo ago
*sight, gonna switch to cloudflare once it expire
Brody
Brody•4mo ago
good choice
Want results from more Discord servers?
Add your server