Skip to content

Commit 00b8285

Browse files
authored
Merge pull request #121 from dragsbruh/railway-verification
Add instructions for railway domain verify record
2 parents 2010f9b + c73969b commit 00b8285

1 file changed

Lines changed: 28 additions & 20 deletions

File tree

src/guides/railway.md

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,38 @@ tags: guides
99

1010
## Getting the CNAME Record
1111

12-
1. Navigate to the [dashboard](https://railway.app/dashboard)
13-
2. Navigate to the project.
14-
3. Navigate to the service.
15-
4. Switch to the **Settings** tab.
16-
5. Click on **+ Custom Domain** button.
17-
6. Enter the `is-a.dev` subdomain you want to use.
18-
7. Copy the **Value** field.
19-
8. For the domain, make the json like this:
20-
```json
21-
{
22-
"owner": {
23-
"username": "your-github-username",
24-
"email": "your-email@example.com"
25-
},
26-
"records": {
27-
"CNAME": "the-value-railway-gave-you"
12+
1. Navigate to the [dashboard](https://railway.app/dashboard) > project > service
13+
2. Switch to the **Settings** tab and click on **+ Custom Domain** button.
14+
3. Enter the `is-a.dev` subdomain you want to use (ex: `subdomain.is-a.dev`)
15+
4. Copy the **Value** field for `@` and create `subdomain.json`
16+
```json
17+
{
18+
"owner": {
19+
"username": "your-github-username",
20+
"email": "your-email@example.com"
21+
},
22+
"records": {
23+
"CNAME": "the-value-railway-gave-you"
24+
}
2825
}
29-
}
30-
```
31-
9. After you have made the file, you should make a pull request.
26+
```
27+
5. Copy the **Value** field for `_railway-verify` and create `_railway-verify.subdomain.json`
28+
```json
29+
{
30+
"owner": {
31+
"username": "your-github-username",
32+
"email": "your-email@example.com"
33+
},
34+
"records": {
35+
"TXT": "the-value-railway-gave-you"
36+
}
37+
}
38+
```
39+
6. After you have made the two files, you should make a pull request.
40+
3241
!!!
3342
**Adding the website preview is mandatory**, since the CNAME value Railway gives you doesn't actually show you the website you are running.
3443
!!!
3544

36-
3745
- **If the PR has been merged, the DNS records will be updated in a few minutes.**
3846
- **If the PR has been merged but the DNS records haven't updated and you have waited 48 hours, [open a GitHub issue](https://github.com/is-a-dev/register/issues/new/choose) or a help thread in the is-a.dev [Discord server](https://discord.gg/is-a-dev-830872854677422150).**

0 commit comments

Comments
 (0)