feat: image lightbox and curl|bash Ubuntu deploy
Add click-to-zoom for uploaded images, move manage.sh to deploy/ for curl|bash bootstrap, and remove Windows docs and PowerShell scripts. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+18
-16
@@ -4,7 +4,21 @@
|
||||
|
||||
---
|
||||
|
||||
## v2.1.0(当前)
|
||||
## v2.1.1(当前)
|
||||
|
||||
### 新增 / 调整
|
||||
|
||||
- **图片点击放大**:查询/添加预览支持灯箱全屏查看(Esc / 点击遮罩关闭)
|
||||
- **一键部署改为 curl | bash**(与 crypto_monitor_user 同风格):
|
||||
```bash
|
||||
curl -fsSL https://git.bz121.com/dekun/crypto_key/raw/branch/main/deploy/manage.sh | bash
|
||||
```
|
||||
- 部署脚本迁至 `deploy/manage.sh`(支持管道自举、从 `/dev/tty` 读菜单)
|
||||
- 文档仅保留 **Ubuntu** 说明,移除 Windows 相关内容
|
||||
|
||||
---
|
||||
|
||||
## v2.1.0
|
||||
|
||||
### 新增
|
||||
|
||||
@@ -15,34 +29,22 @@
|
||||
- **系统设置 Tab**:账户密码 / 自定义类型 / 备份恢复
|
||||
- **前端备份恢复**:下载 `.tar.gz`、立即备份、上传恢复(含 `.env`、`data.json`、`settings.json`、`uploads`)
|
||||
- **每日自动备份**:服务内线程(03:00)+ 部署脚本 cron,备份到 `/root/crypto_key_backups/`
|
||||
- **交互式管理脚本** `scripts/manage.sh`:
|
||||
- **交互式管理脚本**:
|
||||
1. 一键部署
|
||||
2. 更新(**仅 `git pull`,严禁 scp**)
|
||||
3. 一键卸载
|
||||
|
||||
### 变更
|
||||
|
||||
- `scripts/install-ubuntu.sh` 改为调用 `manage.sh deploy`
|
||||
- 自定义字段类型增加:`textarea`、`image`
|
||||
|
||||
### 升级注意
|
||||
|
||||
```bash
|
||||
cd /opt/crypto_key
|
||||
sudo bash scripts/manage.sh
|
||||
curl -fsSL https://git.bz121.com/dekun/crypto_key/raw/branch/main/deploy/manage.sh | bash
|
||||
# 选择 2) 更新
|
||||
```
|
||||
|
||||
或:
|
||||
|
||||
```bash
|
||||
cd /opt/crypto_key
|
||||
git pull
|
||||
source venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
pm2 restart api-key-manager
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## v2.0.0
|
||||
@@ -111,7 +113,7 @@ pm2 restart api-key-manager
|
||||
|
||||
- PM2 守护进程支持(`ecosystem.config.cjs`)
|
||||
- Ubuntu `/opt/crypto_key` 部署脚本与文档
|
||||
- 启动脚本:`pm2-start.sh` / `pm2-start.ps1`
|
||||
- 启动脚本:`pm2-start.sh` / `pm2-stop.sh`
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user