Skip to content

Commit

Permalink
Add: devops, vercel dns
Browse files Browse the repository at this point in the history
  • Loading branch information
shenxiangzhuang committed Dec 5, 2023
1 parent 3e94d8d commit 9625b1c
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 1 deletion.
Binary file added docs/se/devops/image/dns.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/se/devops/image/domain.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
32 changes: 32 additions & 0 deletions docs/se/devops/vercel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Vercel Domain

Vercel服务域名绑定,添加DNS解析支持国内访问。

## 添加域名

在Vercel项目中,点击`Settings`,在`Domains`中添加域名。

比如我自己现有的域名为[datahonor.com](https://datahonor.com),
这里我想把Vercel的服务链接到`calvino.datahonor.com`上,直接在`Domains`中绑定`calvino.datahonor.com`即可。

![](image/domain.jpg)

## 添加DNS解析
!!! warning "`cname-china`"

注意这里添加的记录值为`cname-china.vercel-dns.com`,而不是`cname.vercel-dns.com`。

域名解析[^1]添加CNAME记录,将`calvino.datahonor.com`解析到`cname-china.vercel-dns.com`,
[^1]: 这里以阿里云域名解析设置为例,其他域名解析服务商类似。

![](image/dns.jpg)

等待DNS解析生效后,即可通过[calvino.datahonor.com](https://calvino.datahonor.com/)访问Vercel服务。


## 其他

### 新增解析记录解析多久可以生效?
实时生效[^2]

[^2]: 来自阿里云文档[新增解析记录解析多久可以生效?](https://help.aliyun.com/document_detail/39837.html)
4 changes: 3 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ nav:
- se/index.md
- Backend: se/backend.md
- Frontend: se/frontend.md
- DevOps: se/devops.md
- DevOps:
- se/devops/index.md
- Vercel Domain: se/devops/vercel.md
- Distributed System: se/distributed-system.md
- Tool: se/tool.md

Expand Down

0 comments on commit 9625b1c

Please sign in to comment.