R
Railway

✋|help

ssl

Aatetrax9/13/2023
Im new to all this so bare with me.

I have a .dev site and the ssl giving me some issues. I'm getting the "not secure site" when trying to access the * wildcard version. www. version appears to be working fine. I have a couple questions.

1) Do I need an alias version for both the * wildcard and www. versions? www. version is only alias and is working, which is confusing as I read that railway doesnt use alias? I could be misinformed. I also have an alias version of my *.wildcard domain.

2)I'm getting the NET::ERR_CERT_COMMON_NAME_INVALID error. I'm unsure where i need to add the _acme-challenge.domain.here ? There is a TXT _acme-challenge dns record on my porkbun domain. Is this what i need to do to get my domain working with ssl??
Aatetrax9/13/2023
a1e0fa74-b4fb-4cbf-b48c-f41adb0a38f3
Bbrody1929/13/2023
you need to use the cnames railway gives you for any subdomain and root domain, anything else won't work, of your domain provider doesnt support cnames at the root level you will need to use cloudflare's nameservers
Aatetrax9/13/2023
I just figured it out. I wasnt adding the wildcard into railway.
Bbrody1929/13/2023
awesome glad you've figured it out!
Aatetrax9/13/2023
For anyone troubleshooting in the future. i've written some basic information about the different options when setting up your site using a custom domain like I was/am. This info pertains to railway.app only, as thats my only experience so far.

Root Domain (my.site)
ALIAS: This method points your root domain (my.site) to another domain (like a Railway app domain). Not all DNS providers support these records for the root domain, but if it does, that's a good option for setting up the root domain.

Subdomain (www.my.site)
CNAME Record: This is standard for setting up a subdomain. You can point www.my.site to your Railway app's domain using a CNAME record.

Wildcard (*.my.site)
CNAME: The wildcard can represent any subdomain of your site. It's useful if you're planning to create multiple subdomains that all need to be pointed to the same place. Note that a wildcard will not cover the root domain itself.

Options:
Just Root and www: If you set up DNS records just for my.site and www.my.site, that's often sufficient for most use-cases. Anyone typing either of those will be taken to your website.

Wildcard: A wildcard is more encompassing but may be overkill if you don't plan to use additional subdomains. However, it makes your setup more flexible for future expansions without having to change DNS records again.
can you mark my response as Solution?
it says its already solved so wont let me

Looking for more? Join the community!

Recommended Posts
Deploy Logs Incorrectly Highlighting Logs as ErrorI'm having this issue with a custom log formatter on python defined like this: ``` formatter = loggDeployment stuck while pushing the image and failing after ~30minsHi, I have 4 environment in a project. I'm deploying fastapi application using uvicorn, it was takinpg_restoreIs remote postgres pg_restore from a local binary dump file supposed to take super long? It took likRemove 2FAHi!  I had a string of bad luck and lost my 2FA key for my account. Then I proceeded to use my recoRegion SelectionThe database and the services I work with are in the European region so I'm experiencing some delaysExperiencing crash with no output for the reason of the crash.Hello, I'm having issues with my project that I'm working on. I'm trying to test uploading some datRailway StrapiHi. It's taken me entire day and I think I am getting close. I deployed Strapi with postgres on RailLogs down?I haven't been able to see any logs, deploy or build or observability for the past 15 minDeploy from Gitlab failsI am getting the error: error sending request for url (https://backboard.railway-develop.app/graphRailway Github ActionHey i followed the blog online and am trying to deploy my railway app under a `backend/` directory iBuild slowHi, ive pushed some updates to my sveltekit app that makes my buildtime about 4 minutes for some reaIssue Deploying Laravel PHPHello, i'm trying to deploy an already existing project made in PHP, using Laravel, and i'm trying tCustom domain not showing CNameHi! Just wanted to deploy our main app to Railway but when adding a custom domain it shows an error custom domain via googleHi! I am trying to deploy to a custom domain managed by google, and saw a bunch of posts about issueenvironments are linked together?I've two environments, production and development. If I delete one service in development, it shoulDeployment stuck at building phaseDeployments are stuck at #3 [internal] load metadata for ghcr.io/railwayapp/nixpacks:ubuntu-1693872Outbound traffic to Google Pub/Sub limitedProject id: bc848a89-1faa-4b26-af86-58c13f7a2e99 I am using using google pub/sub with pull subscripAccessing secret env variables during build step```toml [variables] GOPRIVATE="github.com/stroomnetwork" STROOM_REPOS_ACCESS_KEY="ghp_THIS is Secretidle cron job resource usuageim playing around with cron jobs, and they seem to be using around 200mb of ram idly even when not rMixed Content error: HTTP vs. HTTPSI have a Railway/React/Vite frontend accessing a Railway/Fastapi backend, and my frontend receives t