From fbeb1f3d9d2dab82425d04454dbfaa7c0e0c6f78 Mon Sep 17 00:00:00 2001 From: Chinese-tingfeng <128880206+lzA6@users.noreply.github.com> Date: Mon, 13 Oct 2025 02:12:13 +0800 Subject: [PATCH] Create .env.example --- .env.example | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..fed4965 --- /dev/null +++ b/.env.example @@ -0,0 +1,34 @@ +# ==================================================================== +# notion-2api 配置文件模板 (最终版) +# ==================================================================== +# +# 请将此文件重命名为 ".env" 并填入您的凭证。 +# + +# --- 核心安全配置 (可选) --- +API_MASTER_KEY=your_secret_key_here + +# --- 部署配置 (可选) --- +NGINX_PORT=8088 + +# --- Notion 凭证 (以下均为必须或强烈建议设置) --- +# 1) 粘贴 token_v2 的值 或 完整 Cookie +NOTION_COOKIE="在此处粘贴 token_v2 值 或 完整 Cookie" + +# 2) 您的 Space ID +NOTION_SPACE_ID="在此处粘贴您的 Space ID" + +# 3) 您的用户 ID (浏览器开发者工具中 x-notion-active-user-header 的值) +NOTION_USER_ID="在此处粘贴您的 Notion 用户 ID" + +# 4) 您的 Notion 用户名 (显示在左上角的名称) +NOTION_USER_NAME="利仔" + +# 5) 您的 Notion 登录邮箱 +NOTION_USER_EMAIL="q13645947407@gmail.com" + +# 可选:想绑定的页面 blockId。留空则不绑定特定页面上下文。 +NOTION_BLOCK_ID="" + +# 可选:浏览器中看到的客户端版本 +NOTION_CLIENT_VERSION="23.13.20251011.2037"