How i can add custom domain?

actually i have custom domain anubhav1603.dev which is hosted on cloudflare, i want to add anubhav1603.dev/todo , how can i do that?
No description
Solution:
Click on + Custom Domain, type in anubhav1603.dev, go to your cloudflare DNS settings and add the CNAME record Railway gives you Then make sure your SSL/TLS mode is set to Full...
Jump to solution
11 Replies
Percy
Percy3w ago
Project ID: 9295f590-a91b-41ac-8a92-07d2ded868ae
Anubhav
Anubhav3w ago
9295f590-a91b-41ac-8a92-07d2ded868ae
Solution
Fragly
Fragly3w ago
Click on + Custom Domain, type in anubhav1603.dev, go to your cloudflare DNS settings and add the CNAME record Railway gives you Then make sure your SSL/TLS mode is set to Full
Anubhav
Anubhav3w ago
actually its https://anubhav1603.dev already have some static content which is on cloudflare and i want to render the new site at /todo which on railway
Create Next App
Generated by create next app
Fragly
Fragly3w ago
that won't be possible unless you have some kind of reverse proxy that can route the requests to the correct server based on the path of the url If you don't know how to do that though then you could also consider just using a subdomain (e.g todo.anubhav1603.dev)
Anubhav
Anubhav3w ago
how can i setup the subdomain part
Fragly
Fragly3w ago
Click on + Custom Domain, type in todo.anubhav1603.dev, go to your cloudflare DNS settings and add the CNAME record Railway gives you
Anubhav
Anubhav3w ago
got it
Anubhav
Anubhav3w ago
i added this but when i am visiting this it says too many redirects
No description
Keziah
Keziah3w ago
You have to enable full ssl protection on Cloudflare too. By default is flexible, so change it to strict.
Anubhav
Anubhav3w ago
from where i can enable? done workinggggggggg tnx
Want results from more Discord servers?
Add your server