- 删除 production 中全部 env!("CARGO_MANIFEST_DIR")引用
- workspace_root() 替换为运行期 data_dir(Tauri app_data_dir)
- 相对路径锚定改为 AllowedDirs.first_persistent_dir(),无授权时引导绑定项目
- .trash 迁到 data_dir/.trash,含自动迁移
- authz_debug → temp_dir,workspace_drive → current_dir
- run_command 默认 working_dir 改为空串
- G1 目标刷新改为每次消息覆盖(含 ai_chat_edit 路径)
- #6 评分关键词拆到独立文件 scoring_keywords.rs
- #7 promote 补偿删除 purge_with_descendants → soft_delete
- #8 关联双向同步: 后端事务 sync_related_ids + IPC + 前端全链路
- 设置面板新增数据目录显示
31 lines
901 B
Plaintext
31 lines
901 B
Plaintext
# df-relay 跨端 WS 中继反向代理(miniapp ↔ 桌面端)
|
|
# wss 在 nginx 终止(复用 *.1216.top 通配符证书),明文 ws 转 df-relay :9180
|
|
|
|
# HTTP → HTTPS 重定向
|
|
server {
|
|
listen 80;
|
|
server_name u-work.1216.top;
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
# HTTPS wss 反代
|
|
server {
|
|
listen 443 ssl;
|
|
server_name u-work.1216.top;
|
|
|
|
include /etc/nginx/snippets/ssl-1216.conf;
|
|
|
|
# df-relay 两个 WS 端点原样转发(/ws/device + /ws/miniapp)
|
|
# proxy_pass 不带路径后缀 → 完整 URI 透传给 df-relay
|
|
location /ws/ {
|
|
proxy_pass http://127.0.0.1:9180;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_read_timeout 86400;
|
|
proxy_send_timeout 86400;
|
|
}
|
|
}
|