Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

docs: clarify optional administrator username in deployment prompts

tianma-ifafe48dc36527
diff --git a/README.ja.md b/README.ja.md
index ae9b6e46..4ecabaca 100644
--- a/README.ja.md
+++ b/README.ja.md
@@ -106,10 +106,12 @@ EdgeEver をオンラインで導入してください:
1. Fork https://github.com/tianma-if/edgeever.
2. Cloudflare で D1 `edgeever` と R2 `edgeever-resources` を作成します。
3. その Fork を Cloudflare Workers & Pages に取り込み、`main` を本番ブランチにします。
-4. Worker Secret `EDGE_EVER_AUTH_PASSWORD` を追加し、ユーザーが選んだパスワードを値にします。
- このインスタンス専用の、32 文字以上の強いパスワードを推奨します。
-5. 初回ビルドを開始し、`/api/health` と `/api/openapi.json` を確認してから、
- ユーザー名 `admin` と設定したパスワードでログインできることを確認します。
+4. ユーザーが指定した管理者パスワードを Worker Secret `EDGE_EVER_AUTH_PASSWORD` に保存します。
+ パスワードは 32 文字以上を推奨します。管理者ユーザー名の既定値は `admin` です。
+ 別のユーザー名を指定された場合は、初回ビルド前に Workers Builds 変数
+ `EDGE_EVER_AUTH_USERNAME` を設定します。
+5. 初回ビルドを開始します。導入後、`/api/health` と `/api/openapi.json` を確認し、
+ その管理者ユーザー名とパスワードでログインできることを確認します。
6. GitHub Actions の `Update deployed EdgeEver` を有効にし、一度手動実行して、
Fork が最新の機能と修正を自動で受け取れるようにします。
```
@@ -123,8 +125,8 @@ EdgeEver をオンラインで導入してください:
1. **リポジトリを Fork**:GitHub 右上の **Fork** で、EdgeEver を自分のアカウントへ Fork します。
2. **Cloudflare リソースを作成**:D1 `edgeever` と R2 `edgeever-resources` を作ります。
3. **プロジェクトを取り込み、設定**:Fork を Cloudflare **Workers & Pages** に取り込み、`main` を本番ブランチにします。binding は導入コマンドが作ります。Fork 内のファイルは編集しないでください。
-4. **管理者パスワードを設定**:Worker Secret `EDGE_EVER_AUTH_PASSWORD` を追加し、管理者ログイン用パスワードを値にします。このインスタンス専用の、32 文字以上の強いパスワードを推奨します。
-5. **ビルドと確認**:初回ビルドを開始します。導入後、`/api/health` が `200` を返すことと、ユーザー名 `admin` と設定したパスワードでログインできることを確認します。
+4. **管理者パスワードを設定**:Worker Secret `EDGE_EVER_AUTH_PASSWORD` を追加し、管理者ログイン用パスワードを値にします。32 文字以上の強いパスワードを推奨します。
+5. **ビルドと確認**:管理者ユーザー名の既定値は `admin` です。別のユーザー名を使う場合は、初回ビルド前に Workers Builds 変数 `EDGE_EVER_AUTH_USERNAME` を設定します。初回ビルドを開始し、導入後に `/api/health` が `200` を返すことを確認してから、設定した管理者ユーザー名とパスワードでログインします。
6. **自動更新を有効化**:Fork の **Actions** タブで **I understand my workflows, go ahead and enable them** を押し、**Update deployed EdgeEver** を一度手動実行して、以降の機能と修正を自動で受け取れるようにします。
> 📖 手順と設定の詳細は [Online Deployment Guide](docs/deploy-cloudflare-button.md) を見てください。
diff --git a/README.md b/README.md
index 71218342..ae15f544 100644
--- a/README.md
+++ b/README.md
@@ -107,11 +107,12 @@ Deploy EdgeEver online:
2. Create D1 `edgeever` and R2 `edgeever-resources` in Cloudflare.
3. Import the Fork into Cloudflare Workers & Pages and use `main` as the production
branch.
-4. Add a Worker Secret named `EDGE_EVER_AUTH_PASSWORD`, using a password chosen by the
- user as its value. Prefer a strong password of at least 32 characters that is unique
- to this instance.
-5. Start the first build, verify `/api/health` and `/api/openapi.json`, then verify login
- with username `admin` and the configured password.
+4. Save the user's chosen administrator password as the Worker Secret
+ `EDGE_EVER_AUTH_PASSWORD`. Prefer at least 32 characters.
+ The administrator username defaults to `admin`. If the user specifies another, set
+ `EDGE_EVER_AUTH_USERNAME` as a Workers Builds variable before the first build.
+5. Start the first build. Once deployed, verify `/api/health` and `/api/openapi.json`.
+ Then log in with that administrator username and password.
6. Enable and manually run the GitHub Actions workflow named `Update deployed EdgeEver`
once so the Fork can automatically receive the latest EdgeEver features and fixes.
```
@@ -125,8 +126,8 @@ Complete setup in 6 web steps:
1. **Fork the Repository**: Click **Fork** at the top right of GitHub to fork EdgeEver into your personal account.
2. **Create Cloudflare Resources**: Create D1 `edgeever` and R2 `edgeever-resources`.
3. **Import & Configure the Project**: Import the Fork into Cloudflare **Workers & Pages** and use `main` as the production branch. The deploy command creates the bindings; do not edit Fork files.
-4. **Set the Administrator Password**: Add a Worker Secret named `EDGE_EVER_AUTH_PASSWORD` and set its value to your chosen administrator login password. Prefer a strong password of at least 32 characters that is unique to this instance.
-5. **Build & Verify**: Start the initial build. Once deployed, confirm `/api/health` returns `200`, then verify login with username `admin` and the configured password.
+4. **Set the Administrator Password**: Add a Worker Secret named `EDGE_EVER_AUTH_PASSWORD` and set its value to your chosen administrator login password. Prefer a strong password of at least 32 characters.
+5. **Build & Verify**: The administrator username defaults to `admin`. To use another username, set the `EDGE_EVER_AUTH_USERNAME` Workers Builds variable before the first build. Start the first build. Once deployed, confirm `/api/health` returns `200`, then log in with the administrator username and password you configured.
6. **Enable Automatic Updates**: Open the Fork's **Actions** tab, click **I understand my workflows, go ahead and enable them**, then manually run **Update deployed EdgeEver** once so the Fork can automatically receive future EdgeEver features and fixes.
> 📖 For full step-by-step instructions and configuration details, see the [Online Deployment Guide](docs/deploy-cloudflare-button.md).
diff --git a/README.zh-CN.md b/README.zh-CN.md
index dd54e56d..3e0a4097 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -106,10 +106,12 @@ Cloudflare 在线部署可以选择以下两种方式之一:
1. Fork https://github.com/tianma-if/edgeever。
2. 在 Cloudflare 中创建 D1 `edgeever` 与 R2 `edgeever-resources`。
3. 将这个 Fork 导入 Cloudflare Workers & Pages,并将 `main` 设为生产分支。
-4. 添加一个名为 `EDGE_EVER_AUTH_PASSWORD` 的 Worker Secret,值为用户自行设置的
- 管理员登录密码,建议使用至少 32 个字符且仅用于此实例的强密码。
-5. 启动首次构建,验证 `/api/health`、`/api/openapi.json`,并使用用户名 `admin`
- 和配置的密码验证登录。
+4. 将用户指定的管理员密码保存为 Worker Secret `EDGE_EVER_AUTH_PASSWORD`。
+ 密码建议至少 32 个字符。管理员用户名默认为 `admin`。
+ 若用户指定其他用户名,请在首次构建前设置 Workers Builds 构建变量
+ `EDGE_EVER_AUTH_USERNAME`。
+5. 启动首次构建。部署完成后,验证 `/api/health` 和 `/api/openapi.json`,
+ 再用该管理员用户名和密码验证登录。
6. 启用并手动运行一次名为 `Update deployed EdgeEver` 的 GitHub Actions 工作流,
以便后续自动同步更新,持续获得 EdgeEver 最新的产品特性和问题修复。
```
@@ -123,8 +125,8 @@ Cloudflare 在线部署可以选择以下两种方式之一:
1. **Fork 仓库**:在 GitHub 点击右上角 **Fork**,将项目 Fork 到您的个人账户下。
2. **创建 Cloudflare 资源**:创建 D1 `edgeever` 与 R2 `edgeever-resources`。
3. **导入并配置项目**:在 Cloudflare **Workers & Pages** 中导入该 Fork,并将 `main` 设为生产分支。binding 由部署命令生成,不要修改 Fork 中的文件。
-4. **设置管理员密码**:添加一个名为 `EDGE_EVER_AUTH_PASSWORD` 的 Worker Secret,并将其值设为您要使用的管理员登录密码。建议使用至少 32 个字符且仅用于此实例的强密码。
-5. **首次构建与验证**:启动首次构建。部署完成后访问 `/api/health`,确认返回 `200`,并使用用户名 `admin` 和配置的密码验证登录。
+4. **设置管理员密码**:添加一个名为 `EDGE_EVER_AUTH_PASSWORD` 的 Worker Secret,并将其值设为您要使用的管理员登录密码。建议使用至少 32 个字符的强密码。
+5. **首次构建与验证**:管理员用户名默认为 `admin`。如需使用其他用户名,请在首次构建前设置 Workers Builds 构建变量 `EDGE_EVER_AUTH_USERNAME`。启动首次构建,部署完成后访问 `/api/health`,确认返回 `200`,再用配置的管理员用户名和密码登录。
6. **启用自动更新**:进入 Fork 的 **Actions** 标签页,点击 **I understand my workflows, go ahead and enable them**,然后手动运行一次 **Update deployed EdgeEver**,确保后续能够自动获得 EdgeEver 的最新功能与修复。
> 📖 包含具体参数与构建命令的详细步骤,请查看 [在线部署完整文档](docs/deploy-cloudflare-button.zh-CN.md)。
diff --git a/README.zh-TW.md b/README.zh-TW.md
index 3702f332..156c2c05 100644
--- a/README.zh-TW.md
+++ b/README.zh-TW.md
@@ -106,10 +106,12 @@ Cloudflare 線上部署可以選擇以下兩種方式之一:
1. Fork https://github.com/tianma-if/edgeever。
2. 在 Cloudflare 中建立 D1 `edgeever` 與 R2 `edgeever-resources`。
3. 將這個 Fork 匯入 Cloudflare Workers & Pages,並將 `main` 設為正式環境分支。
-4. 新增一個名為 `EDGE_EVER_AUTH_PASSWORD` 的 Worker Secret,值為使用者自行設定的
- 管理員登入密碼,建議使用至少 32 個字元且僅用於此實例的強密碼。
-5. 啟動首次建置,驗證 `/api/health`、`/api/openapi.json`,並使用使用者名稱 `admin`
- 和設定的密碼驗證登入。
+4. 將使用者指定的管理員密碼儲存為 Worker Secret `EDGE_EVER_AUTH_PASSWORD`。
+ 密碼建議至少 32 個字元。管理員使用者名稱預設為 `admin`。
+ 若使用者指定其他名稱,請在首次建置前設定 Workers Builds 建置變數
+ `EDGE_EVER_AUTH_USERNAME`。
+5. 啟動首次建置。部署完成後,驗證 `/api/health` 和 `/api/openapi.json`,
+ 再用該管理員使用者名稱和密碼驗證登入。
6. 啟用並手動執行一次名為 `Update deployed EdgeEver` 的 GitHub Actions 工作流程,
以便後續自動同步更新,持續獲得 EdgeEver 最新的產品特性與問題修復。
```
@@ -123,8 +125,8 @@ Cloudflare 線上部署可以選擇以下兩種方式之一:
1. **Fork 儲存庫**:在 GitHub 點選右上角 **Fork**,將專案 Fork 到您的個人帳戶下。
2. **建立 Cloudflare 資源**:建立 D1 `edgeever` 與 R2 `edgeever-resources`。
3. **匯入並設定專案**:在 Cloudflare **Workers & Pages** 中匯入該 Fork,並將 `main` 設為正式環境分支。binding 由部署指令產生,不要修改 Fork 中的檔案。
-4. **設定管理員密碼**:新增一個名為 `EDGE_EVER_AUTH_PASSWORD` 的 Worker Secret,並將其值設為您要使用的管理員登入密碼。建議使用至少 32 個字元且僅用於此實例的強密碼。
-5. **首次建置與驗證**:啟動首次建置。部署完成後造訪 `/api/health`,確認回傳 `200`,並使用使用者名稱 `admin` 和設定的密碼驗證登入。
+4. **設定管理員密碼**:新增一個名為 `EDGE_EVER_AUTH_PASSWORD` 的 Worker Secret,並將其值設為您要使用的管理員登入密碼。建議使用至少 32 個字元的強密碼。
+5. **首次建置與驗證**:管理員使用者名稱預設為 `admin`。如需使用其他名稱,請在首次建置前設定 Workers Builds 建置變數 `EDGE_EVER_AUTH_USERNAME`。啟動首次建置,部署完成後造訪 `/api/health`,確認回傳 `200`,再用設定的管理員使用者名稱和密碼登入。
6. **啟用自動更新**:進入 Fork 的 **Actions** 分頁,點選 **I understand my workflows, go ahead and enable them**,然後手動執行一次 **Update deployed EdgeEver**,確保後續能夠自動獲得 EdgeEver 的最新功能與修復。
> 📖 包含具體參數與建置指令的詳細步驟,請查看 [線上部署完整文件](docs/deploy-cloudflare-button.zh-CN.md)。
diff --git a/apps/site/src/deployment-prompts.ts b/apps/site/src/deployment-prompts.ts
index 5d09d5e2..d06baa38 100644
--- a/apps/site/src/deployment-prompts.ts
+++ b/apps/site/src/deployment-prompts.ts
@@ -4,21 +4,24 @@ export const deploymentPrompts = {
2. Create D1 \`edgeever\` and R2 \`edgeever-resources\` in Cloudflare.
3. Import the Fork into Cloudflare Workers & Pages and use \`main\` as the production
branch.
-4. Add a Worker Secret named \`EDGE_EVER_AUTH_PASSWORD\`, using a password chosen by the
- user as its value. Prefer a strong password of at least 32 characters that is unique
- to this instance.
-5. Start the first build, verify \`/api/health\` and \`/api/openapi.json\`, then verify login
- with username \`admin\` and the configured password.
+4. Save the user's chosen administrator password as the Worker Secret
+ \`EDGE_EVER_AUTH_PASSWORD\`. Prefer at least 32 characters.
+ The administrator username defaults to \`admin\`. If the user specifies another, set
+ \`EDGE_EVER_AUTH_USERNAME\` as a Workers Builds variable before the first build.
+5. Start the first build. Once deployed, verify \`/api/health\` and \`/api/openapi.json\`.
+ Then log in with that administrator username and password.
6. Enable and manually run the GitHub Actions workflow named \`Update deployed EdgeEver\`
once so the Fork can automatically receive the latest EdgeEver features and fixes.`,
"zh-CN": `请在线完成 EdgeEver 部署:
1. Fork https://github.com/tianma-if/edgeever。
2. 在 Cloudflare 中创建 D1 \`edgeever\` 与 R2 \`edgeever-resources\`。
3. 将这个 Fork 导入 Cloudflare Workers & Pages,并将 \`main\` 设为生产分支。
-4. 添加一个名为 \`EDGE_EVER_AUTH_PASSWORD\` 的 Worker Secret,值为用户自行设置的
- 管理员登录密码,建议使用至少 32 个字符且仅用于此实例的强密码。
-5. 启动首次构建,验证 \`/api/health\`、\`/api/openapi.json\`,并使用用户名 \`admin\`
- 和配置的密码验证登录。
+4. 将用户指定的管理员密码保存为 Worker Secret \`EDGE_EVER_AUTH_PASSWORD\`。
+ 密码建议至少 32 个字符。管理员用户名默认为 \`admin\`。
+ 若用户指定其他用户名,请在首次构建前设置 Workers Builds 构建变量
+ \`EDGE_EVER_AUTH_USERNAME\`。
+5. 启动首次构建。部署完成后,验证 \`/api/health\` 和 \`/api/openapi.json\`,
+ 再用该管理员用户名和密码验证登录。
6. 启用并手动运行一次名为 \`Update deployed EdgeEver\` 的 GitHub Actions 工作流,
以便后续自动同步更新,持续获得 EdgeEver 最新的产品特性和问题修复。`,
} as const;
@@ -41,11 +44,11 @@ export const manualDeploymentCopy = {
},
{
title: "Set the Administrator Password",
- body: "Add a Worker Secret named EDGE_EVER_AUTH_PASSWORD and set its value to your chosen administrator login password. Prefer a strong password of at least 32 characters that is unique to this instance.",
+ body: "Add a Worker Secret named EDGE_EVER_AUTH_PASSWORD and set its value to your chosen administrator login password. Prefer a strong password of at least 32 characters.",
},
{
title: "Build & Verify",
- body: "Start the initial build. Once deployed, confirm /api/health returns 200, then verify login with username admin and the configured password.",
+ body: "The administrator username defaults to admin. To use another username, set the EDGE_EVER_AUTH_USERNAME Workers Builds variable before the first build. Start the first build. Once deployed, confirm /api/health returns 200, then log in with the administrator username and password you configured.",
},
{
title: "Enable Automatic Updates",
@@ -70,11 +73,11 @@ export const manualDeploymentCopy = {
},
{
title: "设置管理员密码",
- body: "添加一个名为 EDGE_EVER_AUTH_PASSWORD 的 Worker Secret,并将其值设为您要使用的管理员登录密码。建议使用至少 32 个字符且仅用于此实例的强密码。",
+ body: "添加一个名为 EDGE_EVER_AUTH_PASSWORD 的 Worker Secret,并将其值设为您要使用的管理员登录密码。建议使用至少 32 个字符的强密码。",
},
{
title: "首次构建与验证",
- body: "启动首次构建。部署完成后访问 /api/health,确认返回 200,并使用用户名 admin 和配置的密码验证登录。",
+ body: "管理员用户名默认为 admin。如需使用其他用户名,请在首次构建前设置 Workers Builds 构建变量 EDGE_EVER_AUTH_USERNAME。启动首次构建,部署完成后访问 /api/health,确认返回 200,再用配置的管理员用户名和密码登录。",
},
{
title: "启用自动更新",
diff --git a/docs/agent-deploy-cloudflare.md b/docs/agent-deploy-cloudflare.md
index 9036739f..aadcd209 100644
--- a/docs/agent-deploy-cloudflare.md
+++ b/docs/agent-deploy-cloudflare.md
@@ -20,7 +20,7 @@ This document defines the standard operating specifications and conventions for
- Configure the project to use the repository root, the production `main` branch, and read the root `wrangler.toml`.
4. **Configure Login Credentials & Instance Settings**
- - **Worker Secret**: Add secret `EDGE_EVER_AUTH_PASSWORD` for the initial administrator password. Prefer a strong password of at least 32 characters that is unique to this instance.
+ - **Worker Secret**: Add secret `EDGE_EVER_AUTH_PASSWORD` for the initial administrator password. Prefer a strong password of at least 32 characters.
- Keep this password only as a Worker runtime Secret; do not copy it into Workers Builds variables. The standard deploy entrypoint reuses and verifies the existing Secret.
- Do not edit `wrangler.toml` or add duplicate bindings in the Dashboard. The deployment command generates the `DB` and `RESOURCES` bindings from these standard resource names.
- For an existing Worker deployed from older instructions, do not ask the user to rename or reconfigure a custom R2 bucket. With no explicit override, deployment automatically preserves the live `RESOURCES` binding and administrator username.
@@ -40,7 +40,7 @@ This document defines the standard operating specifications and conventions for
- Trigger the initial build. Once deployed, run the following automated verifications:
- Check `https://<your-worker-domain>/api/health` returns HTTP `200` with JSON `{"ok": true}`.
- Check `https://<your-worker-domain>/api/openapi.json` is reachable and returns JSON `{"ok": true}`.
- - Verify login API using username `admin` and `EDGE_EVER_AUTH_PASSWORD`.
+ - Verify login API using the configured administrator username (default: `admin`) and `EDGE_EVER_AUTH_PASSWORD`.
7. **Verify Upstream Update Channel**
- In the Fork's **Actions** tab, enable **Update deployed EdgeEver** (required on public forks: scheduled workflows are disabled by default).
diff --git a/docs/agent-deploy-cloudflare.zh-CN.md b/docs/agent-deploy-cloudflare.zh-CN.md
index a126daae..57f06025 100644
--- a/docs/agent-deploy-cloudflare.zh-CN.md
+++ b/docs/agent-deploy-cloudflare.zh-CN.md
@@ -20,7 +20,7 @@
- 配置项目使用仓库根目录、生产环境 `main` 分支,并读取仓库根目录下的 `wrangler.toml`。
4. **配置登录凭据与实例参数**
- - **Worker Secret**:添加密钥 `EDGE_EVER_AUTH_PASSWORD`,值为初始管理员登录密码;建议使用至少 32 个字符且仅用于此实例的强密码。
+ - **Worker Secret**:添加密钥 `EDGE_EVER_AUTH_PASSWORD`,值为初始管理员登录密码;建议使用至少 32 个字符的强密码。
- 该密码只配置为 Worker 运行时 Secret,不要复制到 Workers Builds 构建变量;标准部署入口会复用并验证已存在的 Secret。
- 不要修改 `wrangler.toml`,也不要在控制台重复添加 binding。部署命令会根据标准资源名称生成 `DB` 与 `RESOURCES` binding。
- 对按旧版文档部署的已有 Worker,不要要求用户重命名或重新配置自定义 R2 存储桶。没有显式覆盖时,部署会自动保留线上 `RESOURCES` binding 与管理员用户名。
@@ -40,7 +40,7 @@
- 触发启动首次构建,待构建部署完成后,进行如下自动化验证:
- 检查 `https://<你的 Worker 域名>/api/health` 返回 `200` 状态码且 JSON 内容为 `{"ok": true}`。
- 检查 `https://<你的 Worker 域名>/api/openapi.json` 可以访问,且 JSON 含 `"ok": true`。
- - 使用用户名 `admin` 和 `EDGE_EVER_AUTH_PASSWORD` 验证登录 API。
+ - 使用配置的管理员用户名(默认 `admin`)和 `EDGE_EVER_AUTH_PASSWORD` 验证登录 API。
7. **验证上游更新通道**
- 在 Fork 仓库的 **Actions** 标签页中启用 **Update deployed EdgeEver**(公共 Fork 上定时任务默认关闭,必须手动启用)。