diff --git a/.env.me b/.env.me new file mode 100644 index 000000000..61dafba64 --- /dev/null +++ b/.env.me @@ -0,0 +1,12 @@ +################################################################################# +# # +# This file uniquely authorizes you against this project in dotenv-vault. # +# Do NOT commit this file to source control. # +# # +# Generated with 'npx dotenv-vault login' # +# # +# Learn more at https://dotenv.org/env-me # +# # +################################################################################# + +DOTENV_ME=me_dfea8212459cca5e918e43aeadaebb4b5324b2e14975c69dcbf54c543a732896 \ No newline at end of file diff --git a/docs/en/install/README.md b/docs/en/install/README.md index 8d536f07a..38973b09b 100644 --- a/docs/en/install/README.md +++ b/docs/en/install/README.md @@ -648,6 +648,9 @@ See docs of the specified route and `lib/config.js` for detailed information. - `BITBUCKET_USERNAME`: Your Bitbucket username - `BITBUCKET_PASSWORD`: Your Bitbucket app password +- Civitai + - `CIVITAI_COOKIE`: Cookie of Civitai + - Discord - `DISCORD_AUTHORIZATION`: Discord authorization token, can be found in the header of XHR requests after logging in Discord web client @@ -783,6 +786,3 @@ See docs of the specified route and `lib/config.js` for detailed information. - ZodGame: - `ZODGAME_COOKIE`: Cookie of ZodGame User - -- Civitai - - `CIVITAI_COOKIE`: Cookie of Civitai diff --git a/docs/install/README.md b/docs/install/README.md index d61dbaa95..39acc4f68 100644 --- a/docs/install/README.md +++ b/docs/install/README.md @@ -683,6 +683,9 @@ RSSHub 支持使用访问密钥 / 码,白名单和黑名单三种方式进行 4. 找到 请求 5. 找到请求头中的 Cookie +- Civitai + - `CIVITAI_COOKIE`: Civitai 登录后的 cookie 值 + - discuz cookies 设定 - `DISCUZ_COOKIE_{cid}`: 某 Discuz 驱动的论坛,用户注册后的 Cookie 值,cid 可自由设定,取值范围 \[00, 99], 使用 discuz 通用路由时,通过指定 cid 来调用该 cookie @@ -914,6 +917,3 @@ RSSHub 支持使用访问密钥 / 码,白名单和黑名单三种方式进行 - `ZHIHU_COOKIES`: 知乎登录后的 cookie 值. 1. 可以在知乎网页版的一些请求的请求头中找到,如 `GET /moments` 请求头中的 `cookie` 值. - -- Civitai - - `CIVITAI_COOKIE`: Civitai 登录后的 cookie 值 diff --git a/lib/config.js b/lib/config.js index 454a1991b..9ef27560d 100644 --- a/lib/config.js +++ b/lib/config.js @@ -120,6 +120,9 @@ const calculateValue = () => { chuiniu: { member: envs.CHUINIU_MEMBER, }, + civitai: { + cookie: envs.CIVITAI_COOKIE, + }, dida365: { username: envs.DIDA365_USERNAME, password: envs.DIDA365_PASSWORD, @@ -292,9 +295,6 @@ const calculateValue = () => { zodgame: { cookie: envs.ZODGAME_COOKIE, }, - civitai: { - cookie: envs.CIVITAI_COOKIE, - }, }; }; calculateValue();