Connect Squarespace domain to Railway
levon-glstn
FREEOP

5 months ago

Hey all, I am currently struggling to connect my new squarespace domain to Railway. In my past experience it's has never been so tricky. Could someone assist please? Squarespace doesn't support CNAME flattening at the root

38 Replies

levon-glstn
FREEOP

5 months ago

@Brody as you seem to be familiar with the issue 🙏


uxuz
MODERATOR

5 months ago

Hey @lyova please don't ping the team as per #🛂|readme. For your issue, it is best for you to set up your domain with Cloudflare, which can be done by changing your domain's nameservers to Cloudflare's.

https://developers.cloudflare.com/dns/zone-setups/full-setup/setup/


uxuz
MODERATOR

5 months ago

Cloudflare supports CNAME flattening and you will be able to create the requested CNAME record at the root once you have configured your domain with Cloudflare. Keep in mind that you may need to restart the custom domain process on Railway to ensure that it rechecks your domain for the CNAME record.


levon-glstn
FREEOP

5 months ago

I saw that this was possible to do it without passing through Cloudfare though. Is it still doable? I would like to avoid that


levon-glstn
FREEOP

5 months ago

Just Railway <> Squarespace settings


uxuz
MODERATOR

5 months ago

Using a provider that has CNAME flattening is your safest bet, as it is still the recommended way for setting up an apex domain.


levon-glstn
FREEOP

5 months ago

I just figured it out by just adding custom DNS record in Squarespace and it works. Why wouldn'it be safe? Thank you


uxuz
MODERATOR

5 months ago

I assume that you are using an ALIAS record, if Railway ever change the proxy's IP in the future, your site will not be reachable. Railway changed the IP in the past, and it could get changed again.


levon-glstn
FREEOP

5 months ago

Okay i just configured it via Cloudfare by adding CNAME to dns settings in cloudfare and updating nameservers in Squarespace. is there something else i should do? the URL is working now but i am wondering if it's because of the cache this morning or it's indeed well implemented


levon-glstn
FREEOP

5 months ago

in my railway account, does it look all good from your side? 🙏
thanks again for your help


uxuz
MODERATOR

5 months ago

In case you are using Cloudflare's proxy, the dashboard should also reflect that.

1412043432347701200


levon-glstn
FREEOP

5 months ago

what dashbord, sorry?


brody
EMPLOYEE

5 months ago

The Railway dashboard


levon-glstn
FREEOP

5 months ago

whats weird is that my website is accessible via domain-name.com but not with www.domain-name.com

is there any documentation i can have to debug this by any chance ?


levon-glstn
FREEOP

5 months ago

once it's done, i will be considering looking for a paid plan, but for the moment it's still complicated


brody
EMPLOYEE

5 months ago

Project ID, please. You can copy it from the URL.


levon-glstn
FREEOP

5 months ago

73756bb9-520a-4155-aa48-0d606ac30358


brody
EMPLOYEE

5 months ago

[www.domain-name.com](www.domain-name.com) does not work because you do not have [www.domain-name.com](www.domain-name.com) set on the service as a public domain.


levon-glstn
FREEOP

5 months ago

do you mind attaching a screenshot?


brody
EMPLOYEE

5 months ago

Am I okay sharing your domain publicly?


levon-glstn
FREEOP

5 months ago

Could probably blur it on your screenshot


levon-glstn
FREEOP

5 months ago

Or hide with a rectangle


levon-glstn
FREEOP

5 months ago

I currently have 2 records in Networking section

my-app.up.railway.app
domain-name.com

what exactly should i update here to make it work ?


brody
EMPLOYEE

5 months ago

If you want the www subdomain to work, you need to add the www subdomain.


levon-glstn
FREEOP

5 months ago

I am sorry but you could please precise exactly what should be added and where exactly? That would help. Its the first time I am using Railway.


brody
EMPLOYEE

5 months ago

I don't think I can be any more precise unless I replace the example domain in this sentence with your own domain.


levon-glstn
FREEOP

5 months ago

What I am missing is especially where to add it


levon-glstn
FREEOP

5 months ago

I am pretty sure there are ways to describe it without giving the domain…

Example :

  • This section contains 2 records
    1st record should be updated to XXXX
    2nd record should be deleted (or whatever)


levon-glstn
FREEOP

5 months ago

Sorry for the confusion here but as I said : it's the first time I am using Railway, I would like to find a way to fix the problem and then take a plan


brody
EMPLOYEE

5 months ago

Click the + Custom Domain button to add another domain.


brody
EMPLOYEE

5 months ago

Do not delete or edit any of your current domains.


levon-glstn
FREEOP

5 months ago

I cant add additional custom domain


brody
EMPLOYEE

5 months ago

On the Hobby plan you can add up to two custom domains.


levon-glstn
FREEOP

5 months ago

Not sure to understand why i neede to 2 custom domains, but ok. I have just added it and it gave me another DNS record. What should i do with that?


brody
EMPLOYEE

5 months ago

I was under the impression you wanted [domain-name.com](domain-name.com) and www.[domain-name.com](domain-name.com) to work, that is 2 domains.


levon-glstn
FREEOP

5 months ago

Didn't know that. Thanks. So nothing else to do on my side? Nothing to add to Cloudfare neither?


brody
EMPLOYEE

5 months ago

When you add the www domain, you will need to follow the given instructions, the same as you have done previously.


levon-glstn
FREEOP

5 months ago

Strange because the www.domain-name.com works already even though i didnt update anything since on Cloudfare


Loading...