fix: update documentation to clarify default admin token for desktop installer on first launch
This commit is contained in:
@@ -349,6 +349,7 @@ docker run -d --name metapi \
|
|||||||
> [!TIP]
|
> [!TIP]
|
||||||
> 初始管理员令牌即启动时配置的 `AUTH_TOKEN`。
|
> 初始管理员令牌即启动时配置的 `AUTH_TOKEN`。
|
||||||
> 若在 Compose 外运行且未显式设置 `AUTH_TOKEN`,默认为 `change-me-admin-token`(仅用于本地调试)。
|
> 若在 Compose 外运行且未显式设置 `AUTH_TOKEN`,默认为 `change-me-admin-token`(仅用于本地调试)。
|
||||||
|
> 桌面安装包首次启动也属于这类场景:如果你没有额外注入 `AUTH_TOKEN`,默认管理员令牌同样是 `change-me-admin-token`。
|
||||||
> 如果在「设置」面板中修改了管理员令牌,后续登录请使用新令牌。
|
> 如果在「设置」面板中修改了管理员令牌,后续登录请使用新令牌。
|
||||||
|
|
||||||
Docker Compose、桌面安装包、反向代理、升级与数据库选项等详见 [部署指南](https://metapi.cita777.me/deployment)。
|
Docker Compose、桌面安装包、反向代理、升级与数据库选项等详见 [部署指南](https://metapi.cita777.me/deployment)。
|
||||||
|
|||||||
@@ -350,6 +350,7 @@ After starting, visit `http://localhost:4000` and log in with your `AUTH_TOKEN`!
|
|||||||
> [!TIP]
|
> [!TIP]
|
||||||
> The initial admin token is the `AUTH_TOKEN` configured at startup.
|
> The initial admin token is the `AUTH_TOKEN` configured at startup.
|
||||||
> If running outside Compose without explicitly setting `AUTH_TOKEN`, the default is `change-me-admin-token` (for local debugging only).
|
> If running outside Compose without explicitly setting `AUTH_TOKEN`, the default is `change-me-admin-token` (for local debugging only).
|
||||||
|
> The desktop installer falls into this category on first launch too: if you do not inject `AUTH_TOKEN`, the default admin token is also `change-me-admin-token`.
|
||||||
> If you change the admin token in the Settings panel, use the new token for subsequent logins.
|
> If you change the admin token in the Settings panel, use the new token for subsequent logins.
|
||||||
|
|
||||||
For Docker Compose, desktop installers, reverse proxy, upgrades, and database options, see [Deployment Guide](docs/deployment.md).
|
For Docker Compose, desktop installers, reverse proxy, upgrades, and database options, see [Deployment Guide](docs/deployment.md).
|
||||||
|
|||||||
@@ -191,6 +191,10 @@ docker run -d --name metapi \
|
|||||||
- 托盘菜单支持重新打开窗口、重启后端、开机自启
|
- 托盘菜单支持重新打开窗口、重启后端、开机自启
|
||||||
- 支持基于 GitHub Releases 的应用内更新检查
|
- 支持基于 GitHub Releases 的应用内更新检查
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> 桌面版首次启动时,如果没有显式注入 `AUTH_TOKEN`,管理员登录令牌默认是 `change-me-admin-token`。
|
||||||
|
> 这只适合本机初始调试使用,首次登录后应立即修改。
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> 服务器部署不再提供裸 Node.js Release 压缩包,统一推荐 Docker / Docker Compose。
|
> 服务器部署不再提供裸 Node.js Release 压缩包,统一推荐 Docker / Docker Compose。
|
||||||
|
|
||||||
|
|||||||
@@ -84,6 +84,10 @@ docker compose up -d
|
|||||||
| 数据目录 | 保存在 `app.getPath('userData')/data`,不是仓库里的 `./data` |
|
| 数据目录 | 保存在 `app.getPath('userData')/data`,不是仓库里的 `./data` |
|
||||||
| 日志目录 | 保存在 `app.getPath('userData')/logs`;托盘菜单提供 `Open Logs Folder` |
|
| 日志目录 | 保存在 `app.getPath('userData')/logs`;托盘菜单提供 `Open Logs Folder` |
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> 桌面版首次启动时,如果你没有额外注入 `AUTH_TOKEN`,默认管理员令牌就是 `change-me-admin-token`。
|
||||||
|
> 首次登录后建议立即到「设置」里改成你自己的强密码令牌。
|
||||||
|
|
||||||
> [!TIP]
|
> [!TIP]
|
||||||
> - Windows 下常见路径是 `%APPDATA%\Metapi\data` 和 `%APPDATA%\Metapi\logs`。
|
> - Windows 下常见路径是 `%APPDATA%\Metapi\data` 和 `%APPDATA%\Metapi\logs`。
|
||||||
> - 如果没有额外覆盖端口,本机其他客户端可以直接连接 `http://127.0.0.1:4000`。
|
> - 如果没有额外覆盖端口,本机其他客户端可以直接连接 `http://127.0.0.1:4000`。
|
||||||
|
|||||||
Reference in New Issue
Block a user