AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
docs: streamline deployment configuration guidance
tianma-ifc4d03c2e8da6
diff --git a/.env.local.example b/.env.local.exampleindex 1a0c3207..d23380c2 100644--- a/.env.local.example+++ b/.env.local.example@@ -1,77 +1,49 @@-# EdgeEver local environment variables.-# Copy this file to .env.local, fill in your own values, and never commit that file.+# Copy to .env.local and never commit that file.-# Cloudflare account ID.-# Find it with `bunx wrangler whoami`.+# Cloudflare+# Find the account ID with `bunx wrangler whoami`.CLOUDFLARE_ACCOUNT_ID=-# User API Token used only by `bun run deploy:builds:setup`.-# Create a custom token at https://dash.cloudflare.com/profile/api-tokens with:+# User API Token for `bun run deploy:builds:setup`; do not use an Account API Token.+# Required permissions:# - Workers Builds Configuration: Edit# - Workers Scripts: Read-# Do not use an Account API Token. Never commit or share this value.EDGE_EVER_BUILDS_API_TOKEN=-# Worker service name.-# Defaults to the `edgeever` Cloudflare Worker.EDGE_EVER_WORKER_NAME=edgeever--# Whether to enable the workers.dev subdomain. Allowed values: true / false.EDGE_EVER_WORKERS_DEV=true-# D1 database name.-# Create it with: `bunx wrangler d1 create edgeever`+# StorageEDGE_EVER_D1_DATABASE_NAME=edgeever--# D1 database ID.-# After creating the D1 database, copy the returned database_id here.-# Cloudflare Workers Builds also requires this variable in Build Variables.-# The scripts generate a temporary .wrangler.generated.toml, so you do not need to-# commit your personal D1 ID to the public repository.+# Use the database_id returned by Cloudflare.EDGE_EVER_D1_DATABASE_ID=00000000-0000-0000-0000-000000000000--# Production R2 bucket name.-# Create it with: `bunx wrangler r2 bucket create edgeever-resources`EDGE_EVER_R2_BUCKET_NAME=edgeever-resources--# Preview/local development R2 bucket name.-# Optional; use it to isolate test attachments in Wrangler preview/dev environments.+# Optional bucket for isolated preview/dev attachments.EDGE_EVER_R2_PREVIEW_BUCKET_NAME=edgeever-resources-preview-# Login username.+# Authentication+# Initial login credentials; the password is uploaded as a Worker Secret.EDGE_EVER_AUTH_USERNAME=admin--# Login password.EDGE_EVER_AUTH_PASSWORD=admin123--# Web session lifetime in days. The server limits it to 1-400 days.+# Allowed range: 1-400 days.EDGE_EVER_SESSION_TTL_DAYS=400-# Optional: public demo mode. Recommended only for shared demo environments such as demo.edgeever.org.-# When enabled, the Worker fills missing sample content and periodically resets demo data with Cron.+# Demo mode+# Seeds sample content and periodically resets it; intended for public demos only.EDGE_EVER_DEMO_MODE=false--# Optional: demo reset Cron schedule, in UTC. Defaults to `0 19 * * *` (03:00 Beijing time).-# The deployment scripts add it to the temporary Wrangler config only when EDGE_EVER_DEMO_MODE=true.+# UTC Cron schedule, used only when demo mode is enabled.EDGE_EVER_DEMO_RESET_CRON=0 19 * * *-# Optional: custom domain. The deployment scripts create a custom_domain route when set.+# Routing# Example: notes.example.comEDGE_EVER_CUSTOM_DOMAIN=--# Optional: full route pattern. Falls back to EDGE_EVER_CUSTOM_DOMAIN when unset.-# Example: notes.example.com/*+# Optional full route pattern; otherwise the custom domain is used.EDGE_EVER_ROUTE_PATTERN=-# Frontend API base URL.-# Local development defaults to the Wrangler dev server: `bun run dev:api`+# Local frontendVITE_API_BASE_URL=http://127.0.0.1:8787-# Optional: multi-instance deployment.-# Select remote instances explicitly per command instead of setting a persistent-# local default, for example: EDGE_EVER_INSTANCE=prod bun run dev:remote.-# Cloudflare Builds may still set EDGE_EVER_INSTANCE as a Build Variable.-# The scripts prefer `EDGE_EVER_<NAME>_*` values and fall back to the generic-# `EDGE_EVER_*` values above.-# For example, `EDGE_EVER_INSTANCE=prod` prefers `EDGE_EVER_PROD_WORKER_NAME`,-# `EDGE_EVER_PROD_D1_DATABASE_ID`, `EDGE_EVER_PROD_R2_BUCKET_NAME`, and similar variables.+# Multi-instance deployments+# Select remote instances per command, for example:+# EDGE_EVER_INSTANCE=prod bun run dev:remote+# Instance-specific `EDGE_EVER_<NAME>_*` values override the generic values above.diff --git a/README.md b/README.mdindex edb7907b..c5a34d1c 100644--- a/README.md+++ b/README.md@@ -75,7 +75,7 @@ After the first deployment, see [Cloudflare Workers Builds](docs/cloudflare-workPlease refer to the [Cloudflare Manual Deployment Guide](docs/manual-deploy.md) for first-time manual installation, Cloudflare resource setup, and emergency recovery. After the first deployment, connect Workers Builds; future updates arrive through GitHub **Sync fork** or pushes to `main`.-The automated helper commands are recommended. The template uses `admin` / `admin123` for the initial login, and the password can be changed later in Personal Settings. If you create the Cloudflare resources manually, finish configuring `.env.local`—including the D1 ID, R2 bucket, and the 400-day session limit—before running `bun run deploy`. New deployments should configure the plaintext `EDGE_EVER_AUTH_PASSWORD`; existing installations that use `EDGE_EVER_AUTH_PASSWORD_HASH` remain supported. Use that command only for first installation and emergency recovery; Workers Builds handles routine updates.+The automated helper commands are recommended. The template uses `admin` / `admin123` for the initial login, and the password can be changed later in Personal Settings. If you create the Cloudflare resources manually, finish configuring `.env.local`—including the D1 ID, R2 bucket, and the 400-day session limit—before running `bun run deploy`.## Multi-Account Logindiff --git a/README.zh-CN.md b/README.zh-CN.mdindex 41dbf8c8..b840bd01 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -72,7 +72,7 @@ Agent 应优先按 [AI Agent Cloudflare Deployment](docs/agent-deploy-cloudflare关于首次手动安装、Cloudflare 资源配置与紧急修复,请参考 [Cloudflare 手动部署指南](docs/manual-deploy.zh-CN.md)。首次部署后,请配置 Cloudflare Workers Builds;之后通过 GitHub **Sync fork** 或推送 `main` 自动更新。-推荐优先使用自动化辅助命令。配置模板使用 `admin` / `admin123` 作为初始登录账号密码,之后可在个人设置中修改密码。如果选择完全手动创建 Cloudflare 资源,必须先在 `.env.local` 中完成 D1 ID、R2 bucket 和 400 天会话期限等配置,再执行 `bun run deploy`;新部署直接配置明文的 `EDGE_EVER_AUTH_PASSWORD`,已有实例仍兼容 `EDGE_EVER_AUTH_PASSWORD_HASH`。该命令仅用于首次安装和紧急修复;日常更新由 Workers Builds 自动完成。+推荐优先使用自动化辅助命令。配置模板使用 `admin` / `admin123` 作为初始登录账号密码,之后可在个人设置中修改密码。如果选择完全手动创建 Cloudflare 资源,必须先在 `.env.local` 中完成 D1 ID、R2 bucket 和 400 天会话期限等配置,再执行 `bun run deploy`。## 多账号登录