动机
需要一个长期维护的写作空间,把日常踩坑、读文档、做项目的过程沉淀下来。
技术选型
- 服务器:阿里云 ECS(上海),Ubuntu 24.04,1.6G 内存
- Web 服务:Nginx 1.24
- HTTPS:Let’s Encrypt(Certbot 自动管理)
- 站点类型:纯静态(Markdown 构建 → HTML)
部署过程
1. 域名与备案
注册 caseshy.top,完成工信部 ICP 备案(陇ICP备2026004536号-1)。公安联网备案待办理。
2. Nginx 配置
server {
server_name caseshy.top www.caseshy.top;
root /var/www/caseshy-blog;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}
3. HTTPS
apt install certbot python3-certbot-nginx
certbot --nginx -d caseshy.top -d www.caseshy.top
4. 部署脚本
编写 deploy/install-on-ubuntu.sh,一键安装 Nginx + 同步文件 + 启用站点。
下一步
- [ ] 搭建 Markdown → HTML 构建流程
- [ ] 添加 RSS 订阅
- [ ] 完成公安联网备案
- [ ] 配置 CDN