update at 2026-10-12 15:14:13

This commit is contained in:
douboer
2026-10-12 15:14:13 +08:00
parent 7a225ff2b1
commit db63516781
12 changed files with 1012 additions and 43 deletions

56
todo.md
View File

@@ -14,54 +14,24 @@
后续任务:将硬件核心原理提炼为教学实验,开发可调参数的仿真软件(支持调光纤长度、噪声、采样率等),并撰写教学论文。不追求恢复整机硬件,重点在"让更多人能理解这个光学游标卡尺的原理"。
1. 演示网站域名创建。https://chenxy.biboer.cn。自动化rsync同步部署。
1. 演示网站域名创建。https://chenxy.biboer.cn:5050。自动化rsync同步部署。
部署到web(ssh web)。
域名已创建,如下:
✅
```
gavin tools % ./dns.sh chenxy.biboer.cn
```
```
gavin m4 tools % ./yuming.sh chenxy.biboer.cn 5050
[INFO] 模式: apply, 域名: chenxy.biboer.cn
[INFO] Zone: biboer.cn (10555bc8cf587e1572eb54d7533efda8)
[INFO] DNS 不存在,执行创建
[INFO] DNS 已就绪: chenxy.biboer.cn -> 24.233.3.126
[2026-10-12 13:38:49] [INFO] dns-https-302 开始: domain=chenxy.biboer.cn dry_run=false certbot_email=<empty>
[2026-10-12 13:38:49] [INFO] 已写入基础 nginx 配置: /etc/nginx/conf.d/chenxy.biboer.cn.conf
[2026-10-12 13:38:49] [INFO] nginx 基础配置已生效
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Python 3.9 support will be dropped in the next planned release of Certbot - please upgrade your Python version.
Requesting a certificate for chenxy.biboer.cn
Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/chenxy.biboer.cn/fullchain.pem
Key is saved at: /etc/letsencrypt/live/chenxy.biboer.cn/privkey.pem
This certificate expires on 2027-01-10.
These files will be updated when the certificate renews.
Deploying certificate
Successfully deployed certificate for chenxy.biboer.cn to /etc/nginx/conf.d/chenxy.biboer.cn.conf
Congratulations! You have successfully enabled HTTPS on https://chenxy.biboer.cn
NEXT STEPS:
- The certificate will need to be renewed before it expires. Certbot can automatically renew the certificate in the background, but you may need to take steps to enable that functionality. See https://certbot.org/renewal-setup for instructions.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
* Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
* Donating to EFF: https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[2026-10-12 13:39:07] [INFO] certbot 已执行完成: chenxy.biboer.cn
[2026-10-12 13:39:07] [INFO] 已写入最终 302 配置: /etc/nginx/conf.d/chenxy.biboer.cn.conf
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
[2026-10-12 13:39:07] [INFO] nginx reload 完成
[INFO] 云主机证书与 302 配置已完成
[INFO] 完成。
[INFO] 开始处理: 域名=chenxy.biboer.cn 端口=5050 tunnel=mac-tunnel
[INFO] 已写入 nginx 配置: /opt/homebrew/etc/nginx/servers/chenxy.biboer.cn.conf
[INFO] 已更新 cloudflared ingress: /Users/gavin/.cloudflared/config.yml
[INFO] cloudflared ingress 规则校验通过
2026-10-12T07:10:58Z INF Added CNAME chenxy.biboer.cn which will route to this tunnel tunnelID=c9af295a-8197-4003-9e14-3aa72f49caba
[INFO] 已完成 tunnel DNS 路由
[INFO] 已重启 cloudflared 服务: cn.biboer.cloudflared.mac-tunnel
nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /opt/homebrew/etc/nginx/nginx.conf:1
nginx: the configuration file /opt/homebrew/etc/nginx/nginx.conf syntax is ok
```
2. 创建项目分析、方案&目录结构 ✅
3. 在macos中迭代,跨平台可用。