Skip to content

feat: 官网 cocoai.chat 上线与配套修正 - #63

Merged
hinson0 merged 6 commits into
mainfrom
feat/launch-website
Apr 22, 2026
Merged

hinson0 merged 6 commits into
mainfrom
feat/launch-website

Conversation

@hinson0

@hinson0 hinson0 commented Apr 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • 🚀 官网上线 https://cocoai.chat — 便签拼贴风静态站,配套隐私政策 + 用户协议
  • 🔗 修正 App 占位链接 — about.tsx 里 example.com × 3 改为 cocoai.chat 真实地址
  • 📸 压缩静态资源 — 5 张截图从 3.1MB 压到 ~480KB (6× 缩减)
  • 📚 落盘 Nginx 部署知识点 — docs/knowledges/nginx/static-site-deploy.md

改动范围

文件 说明
apps/mobile/app/about.tsx 用户协议/隐私政策链接 + 联系邮箱 + 版权年份
apps/web/assets/*.png 5 张截图 (bills/chat/logo/profile/stats) 压缩
docs/knowledges/nginx/static-site-deploy.md 新增 285 行部署速查文档

注:官网正式页 apps/web/{index,privacy,terms}.html、styles.css、方案原型 design-preview/ 已在上一个 commit 637cbb95 feat(web): 新增web页 合入 main,本 PR 只处理压缩后的资产 + 周边配套。

部署现状

  • ✅ 腾讯云 CVM + Nginx 1.24 + Let's Encrypt/腾讯云 SSL
  • ✅ DNS:@ / * / api 均指向 119.45.41.158
  • ✅ 主站 200 / www→主域 301 / api 反代 FastAPI:8000
  • ✅ HTTPS 自动跳转,HSTS 由证书 ssl_protocols TLSv1.2+ 保障

Test plan

  • 浏览器访问 https://cocoai.chat 首页渲染正常
  • 点击截图 → lightbox 放大,点击关闭可关
  • 页脚「隐私政策」「用户协议」跳转正常
  • 页脚「赣ICP备2026007938号」跳转工信部
  • curl -I https://www.cocoai.chat → HTTP/2 301
  • curl -I https://api.cocoai.chat/docs → FastAPI swagger 可达
  • App 内「用户协议」「隐私政策」菜单跳转到新链接 (待 App 构建后验证)

Co-Authored-By: Claude noreply@anthropic.com

hinson0 and others added 6 commits April 22, 2026 22:37
- 用户协议链接指向 https://cocoai.chat/terms.html
- 隐私政策链接指向 https://cocoai.chat/privacy.html
- 联系邮箱改为 hinson0@qq.com
- 底部版权年份更新为 © 2026 CoCo AI

Co-Authored-By: Claude <noreply@anthropic.com>
5 张截图从原始 ~3.1MB 压缩到 ~480KB (约 6x 体积缩减),首屏加载更快。

Co-Authored-By: Claude <noreply@anthropic.com>
记录 cocoai.chat 上线过程中的 Nginx 部署经验,包括:
- 目录结构与 include 通配符规范
- 完整 server block 模板(主站 + www 301 + api 反代)
- 常用命令与权限要点(/home 下 www-data 权限坑)
- SSL 证书方案对比(certbot vs 腾讯云单域名证书)
- DNS 泛解析与精确记录优先级
- 常见坑速查(http2 redefined / 硬编码 include / 证书域名不匹配 等)
- 日志排错命令与部署更新流程

Co-Authored-By: Claude <noreply@anthropic.com>
记录 cocoai.chat 官网 assets 压缩过程:
- pngquant 安装与常用命令(单张/批量/递归)
- 本次实测对照表(2.9MB → 480KB)
- 质量参数选择与视觉效果对应
- pngquant + oxipng 终极组合
- WebP / AVIF 替代方案速查

Co-Authored-By: Claude <noreply@anthropic.com>
隐私政策 onPress 回调按 80 列断行。

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@hinson0

hinson0 commented Apr 22, 2026

Copy link
Copy Markdown
Owner Author

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

🤖 Generated with Claude Code

- If this code review was useful, please react with 👍. Otherwise, react with 👎.

@hinson0
hinson0 merged commit 5c542da into main Apr 22, 2026
1 check passed
@hinson0
hinson0 deleted the feat/launch-website branch April 22, 2026 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant