云服务与基础设施
把前端项目部署到云上,配齐域名、HTTPS、CDN、对象存储、Serverless。这一模块覆盖阿里云 + AWS + Cloudflare 三家。
文档清单
| 文档 | 解决的问题 |
|---|---|
| 阿里云 ECS 与 VPC 网络 | 买服务器、VPC、安全组、弹性 IP |
| 阿里云 OSS/CDN/SLB 实战 | 静态托管、CDN 加速、负载均衡 |
| AWS S3/CloudFront/ALB 实战 | AWS 对标方案 |
| Cloudflare Workers 与边缘计算 | 边缘函数、KV、R2、Pages |
| 域名管理与 SSL 证书自动化 | DNS 配置、cert-manager、ACM |
| 对象存储最佳实践 | 权限、CORS、生命周期、直传 |
| Serverless 部署(FC/Lambda/Vercel) | 函数计算、冷启动、SSR |
速查
# 阿里云 OSS 静态托管
ossutil64 sync ./dist oss://my-bucket/
aliyun cdn RefreshObjectCaches --ObjectPath "https://cdn.example.com/"
# AWS S3 + CloudFront
aws s3 sync ./dist s3://my-bucket --delete
aws cloudfront create-invalidation --distribution-id E123 --paths "/*"
# Cloudflare Pages
npx wrangler pages deploy ./dist --project-name my-app