diff --git a/.gitignore b/.gitignore index 42c5051..feca758 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,5 @@ # whisper 模型(体积大,用 bootstrap.sh 自动下载) models/ -# 自签证书(每台机器用 gen-cert.sh 生成) -certs/ - # 系统文件 .DS_Store diff --git a/CLAUDE.md b/CLAUDE.md index 8c8b099..1e1b435 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -11,15 +11,12 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ## Commands ```bash -# 新电脑一键部署(幂等:装依赖 → 补模型 → 生成证书 → 启动,见 DEPLOY.md) +# 新电脑一键部署(幂等:装依赖 → 补模型 → 启动,见 DEPLOY.md) bash bootstrap.sh -# 启动(HTTP:8000 + HTTPS:8443,首次自动生成自签证书) +# 启动(HTTP:8000;麦克风需安全上下文:本机 localhost 或部署时挂 HTTPS 反向代理) bash start.sh # 或 node server.js -# 换电脑 / IP 变了后重新生成自签名证书 -bash gen-cert.sh - # 语法检查(无测试框架,改完用这个自查) node -e "new (require('vm').Script)(require('fs').readFileSync('server.js','utf8'));console.log('server ok')" node -e "const m=require('fs').readFileSync('index.html','utf8').match(/