From b8ed28805190a557adc8c907bfcbbefd91919ca2 Mon Sep 17 00:00:00 2001 From: dezhishen <26274059+dezhishen@users.noreply.github.com> Date: Mon, 30 Jun 2025 15:33:47 +0800 Subject: [PATCH 1/6] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9115=E7=9A=84typo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 97d5eef..2ccd23d 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -75,11 +75,11 @@ else sed -i "s|\"baiduyun_ext\":.*|\"baiduyun_ext\": \"${OPLIST_BAIDUYUN_EXT}\",|" ./wrangler.jsonc fi #替换目录下wrangler文件中的cloud115_uid -if [ -z "${OPLIST_cloud115_uid}" ]; then +if [ -z "${OPLIST_CLOUD115_UID}" ]; then echo "cloud115_uid is not set, skipping replacement." else echo "Replacing cloud115_uid in wrangler file..." - sed -i "s|\"cloud115_uid\":.*|\"cloud115_uid\": \"${OPLIST_cloud115_uid}\",|" ./wrangler.jsonc + sed -i "s|\"cloud115_uid\":.*|\"cloud115_uid\": \"${OPLIST_CLOUD115_UID}\",|" ./wrangler.jsonc fi #替换目录下wrangler文件中的115cloud_key if [ -z "${OPLIST_115CLOUD_KEY}" ]; then From 4913defed8ab7ac0d6ef8255472b2c24f2376c8f Mon Sep 17 00:00:00 2001 From: dezhishen <26274059+dezhishen@users.noreply.github.com> Date: Mon, 30 Jun 2025 15:33:58 +0800 Subject: [PATCH 2/6] =?UTF-8?q?docs:=20=E5=A2=9E=E5=8A=A0docker=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/README.md b/README.md index 44c8ee0..783955a 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,64 @@ cp wrangler.jsonc.example wrangler.jsonc ``` +### Docker部署 +#### 拉取镜像 +``` +docker pull openlistteam/openlist_api_server +``` +or +``` +docker pull ghcr.io/openlistteam/openlist_api_server:latest +``` +#### 启动项目 +``` +docker run -d --name oplist-api-server \ + -p 3000:3000 \ + -e OPLIST_MAIN_URLS="api.example.com" \ + -e OPLIST_ONEDRIVE_UID=xxxx `#optional` \ + -e OPLIST_ONEDRIVE_KEY=xxxx `#optional` \ + -e OPLIST_ALICLOUD_UID=xxxx `#optional` \ + -e OPLIST_ALICLOUD_KEY=xxxx `#optional` \ + -e OPLIST_BAIDUYUN_UID=xxxx `#optional` \ + -e OPLIST_BAIDUYUN_KEY=xxxx `#optional` \ + -e OPLIST_CLOUD115_UID=xxxx `#optional` \ + -e OPLIST_CLOUD115_KEY=xxxx `#optional` \ + -e OPLIST_GOOGLEUI_UID=xxxx `#optional` \ + -e OPLIST_GOOGLEUI_KEY=xxxx `#optional` \ + -e OPLIST_GOOGLEUI_KEY=xxxx `#optional` \ + -e OPLIST_YANDEXUI_UID=xxxx `#optional` \ + -e OPLIST_YANDEXUI_KEY=xxxx `#optional` \ + -e OPLIST_DROPBOXS_UID=xxxx `#optional` \ + -e OPLIST_DROPBOXS_KEY=xxxx `#optional` \ + -e OPLIST_QUARKPAN_UID=xxxx `#optional` \ + -e OPLIST_QUARKPAN_UID=xxxx `#optional` \ + openlistteam/openlist_api_server:latest +``` +可以替换镜像为**ghcr ghcr.io/openlistteam/openlist_api_server:latest** +**请务必根据下面的环境变量,修改你使用的环境变量** + +#### 环境变量说明 + +| 变量名称 | 必要 | 变量类型 | 变量说明 | +| -------------- | ---- | -------- | --------------------------------- | +| `OPLIST_MAIN_URLS` | 是 | string | 绑定主域名,示例:api.example.com | +| `OPLIST_ONEDRIVE_UID` | 否 | string | OneDrive 客户端ID | +| `OPLIST_ONEDRIVE_KEY` | 否 | string | OneDrive 客户端密钥 | +| `OPLIST_ALICLOUD_UID` | 否 | string | 阿里云盘开发者AppID | +| `OPLIST_ALICLOUD_KEY` | 否 | string | 阿里云盘开发者AppKey | +| `OPLIST_BAIDUYUN_UID` | 否 | string | 百度网盘应用密钥AppKey | +| `OPLIST_BAIDUYUN_KEY` | 否 | string | 百度网盘应用密钥SecretKey | +| `OPLIST_CLOUD115_UID` | 否 | string | 115网盘应用ID | +| `OPLIST_CLOUD115_KEY` | 否 | string | 115网盘应用密钥 | +| `OPLIST_GOOGLEUI_UID` | 否 | string | 谷歌客户端ID | +| `OPLIST_GOOGLEUI_KEY` | 否 | string | 谷歌全局API Key | +| `OPLIST_YANDEXUI_UID` | 否 | string | Yandex应用ID | +| `OPLIST_YANDEXUI_KEY` | 否 | string | Yandex应用密钥 | +| `OPLIST_DROPBOXS_UID` | 否 | string | Dropboxx应用ID | +| `OPLIST_DROPBOXS_KEY` | 否 | string | Dropbox应用密钥 | +| `OPLIST_QUARKPAN_UID` | 否 | string | 夸克云盘x应用ID | +| `OPLIST_QUARKPAN_KEY` | 否 | string | 夸克云盘应用密钥 | + ### 变量说明 From 09acf32f7f91639ce1ca0768023fa7b58b583f66 Mon Sep 17 00:00:00 2001 From: dezhishen <26274059+dezhishen@users.noreply.github.com> Date: Mon, 30 Jun 2025 15:35:00 +0800 Subject: [PATCH 3/6] =?UTF-8?q?docs:=20=E4=BF=AE=E6=94=B9=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 783955a..81268f9 100644 --- a/README.md +++ b/README.md @@ -98,8 +98,8 @@ docker run -d --name oplist-api-server \ -e OPLIST_QUARKPAN_UID=xxxx `#optional` \ openlistteam/openlist_api_server:latest ``` -可以替换镜像为**ghcr ghcr.io/openlistteam/openlist_api_server:latest** -**请务必根据下面的环境变量,修改你使用的环境变量** +- 可以替换镜像为**ghcr ghcr.io/openlistteam/openlist_api_server:latest** +- **请务必根据下面的环境变量,修改你使用的环境变量** #### 环境变量说明 From fef45969c806d4483e9f63f2df008813ff59ca39 Mon Sep 17 00:00:00 2001 From: dezhishen <26274059+dezhishen@users.noreply.github.com> Date: Mon, 30 Jun 2025 15:38:13 +0800 Subject: [PATCH 4/6] =?UTF-8?q?docs:=20=E4=BF=AE=E6=94=B9=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 81268f9..0d91ebc 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,10 @@ docker run -d --name oplist-api-server \ -e OPLIST_QUARKPAN_UID=xxxx `#optional` \ openlistteam/openlist_api_server:latest ``` -- 可以替换镜像为**ghcr ghcr.io/openlistteam/openlist_api_server:latest** +- 可以替换镜像为ghcr: + ``` + ghcr.io/openlistteam/openlist_api_server:latest + ``` - **请务必根据下面的环境变量,修改你使用的环境变量** #### 环境变量说明 From fe70094c56a34733741af32adc072e1f9f466952 Mon Sep 17 00:00:00 2001 From: dezhishen <26274059+dezhishen@users.noreply.github.com> Date: Mon, 30 Jun 2025 15:49:26 +0800 Subject: [PATCH 5/6] =?UTF-8?q?fix:=20=E5=8F=98=E9=87=8F=E5=90=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E5=92=8C=E7=BC=BA=E5=A4=B1=E7=9A=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 2ccd23d..0e9c84d 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -82,11 +82,11 @@ else sed -i "s|\"cloud115_uid\":.*|\"cloud115_uid\": \"${OPLIST_CLOUD115_UID}\",|" ./wrangler.jsonc fi #替换目录下wrangler文件中的115cloud_key -if [ -z "${OPLIST_115CLOUD_KEY}" ]; then - echo "115CLOUD_KEY is not set, skipping replacement." +if [ -z "${OPLIST_CLOUD115_KEY}" ]; then + echo "CLOUD_KEY115 is not set, skipping replacement." else echo "Replacing 115cloud_key in wrangler file..." - sed -i "s|\"115cloud_key\":.*|\"115cloud_key\": \"${OPLIST_115CLOUD_KEY}\",|" ./wrangler.jsonc + sed -i "s|\"cloud115_key\":.*|\"cloud115_key\": \"${OPLIST_CLOUD115_KEY}\",|" ./wrangler.jsonc fi #替换目录下wrangler文件中的googleui_uid if [ -z "${OPLIST_GOOGLEUI_UID}" ]; then From 5368d8cb37b551c13d1240173a5b4a0440e65e96 Mon Sep 17 00:00:00 2001 From: dezhishen <26274059+dezhishen@users.noreply.github.com> Date: Mon, 30 Jun 2025 15:51:19 +0800 Subject: [PATCH 6/6] =?UTF-8?q?docs:=20=E6=96=87=E6=A1=A3=E8=A1=A5?= =?UTF-8?q?=E5=85=85baiduyun=5Fext?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 0d91ebc..aaa53b9 100644 --- a/README.md +++ b/README.md @@ -79,23 +79,23 @@ docker pull ghcr.io/openlistteam/openlist_api_server:latest docker run -d --name oplist-api-server \ -p 3000:3000 \ -e OPLIST_MAIN_URLS="api.example.com" \ - -e OPLIST_ONEDRIVE_UID=xxxx `#optional` \ - -e OPLIST_ONEDRIVE_KEY=xxxx `#optional` \ - -e OPLIST_ALICLOUD_UID=xxxx `#optional` \ - -e OPLIST_ALICLOUD_KEY=xxxx `#optional` \ - -e OPLIST_BAIDUYUN_UID=xxxx `#optional` \ - -e OPLIST_BAIDUYUN_KEY=xxxx `#optional` \ - -e OPLIST_CLOUD115_UID=xxxx `#optional` \ - -e OPLIST_CLOUD115_KEY=xxxx `#optional` \ - -e OPLIST_GOOGLEUI_UID=xxxx `#optional` \ - -e OPLIST_GOOGLEUI_KEY=xxxx `#optional` \ - -e OPLIST_GOOGLEUI_KEY=xxxx `#optional` \ - -e OPLIST_YANDEXUI_UID=xxxx `#optional` \ - -e OPLIST_YANDEXUI_KEY=xxxx `#optional` \ - -e OPLIST_DROPBOXS_UID=xxxx `#optional` \ - -e OPLIST_DROPBOXS_KEY=xxxx `#optional` \ - -e OPLIST_QUARKPAN_UID=xxxx `#optional` \ - -e OPLIST_QUARKPAN_UID=xxxx `#optional` \ + -e OPLIST_ONEDRIVE_UID= `#optional` \ + -e OPLIST_ONEDRIVE_KEY= `#optional` \ + -e OPLIST_ALICLOUD_UID= `#optional` \ + -e OPLIST_ALICLOUD_KEY= `#optional` \ + -e OPLIST_BAIDUYUN_UID= `#optional` \ + -e OPLIST_BAIDUYUN_KEY= `#optional` \ + -e OPLIST_BAIDUYUN_EXT= `#optional` \ + -e OPLIST_CLOUD115_UID= `#optional` \ + -e OPLIST_CLOUD115_KEY= `#optional` \ + -e OPLIST_GOOGLEUI_UID= `#optional` \ + -e OPLIST_GOOGLEUI_KEY= `#optional` \ + -e OPLIST_YANDEXUI_UID= `#optional` \ + -e OPLIST_YANDEXUI_KEY= `#optional` \ + -e OPLIST_DROPBOXS_UID= `#optional` \ + -e OPLIST_DROPBOXS_KEY= `#optional` \ + -e OPLIST_QUARKPAN_UID= `#optional` \ + -e OPLIST_QUARKPAN_KEY= `#optional` \ openlistteam/openlist_api_server:latest ``` - 可以替换镜像为ghcr: @@ -115,6 +115,7 @@ docker run -d --name oplist-api-server \ | `OPLIST_ALICLOUD_KEY` | 否 | string | 阿里云盘开发者AppKey | | `OPLIST_BAIDUYUN_UID` | 否 | string | 百度网盘应用密钥AppKey | | `OPLIST_BAIDUYUN_KEY` | 否 | string | 百度网盘应用密钥SecretKey | +| `OPLIST_BAIDUYUN_EXT` | 否 | string | 百度网盘应用ext | | `OPLIST_CLOUD115_UID` | 否 | string | 115网盘应用ID | | `OPLIST_CLOUD115_KEY` | 否 | string | 115网盘应用密钥 | | `OPLIST_GOOGLEUI_UID` | 否 | string | 谷歌客户端ID | @@ -138,6 +139,7 @@ docker run -d --name oplist-api-server \ | `alicloud_key` | 否 | string | 阿里云盘开发者AppKey | | `baiduyun_uid` | 否 | string | 百度网盘应用密钥AppKey | | `baiduyun_key` | 否 | string | 百度网盘应用密钥SecretKey | +| `baiduyun_ext` | 否 | string | 百度网盘应用ext | | `cloud115_uid` | 否 | string | 115网盘应用ID | | `cloud115_key` | 否 | string | 115网盘应用密钥 | | `googleui_uid` | 否 | string | 谷歌客户端ID |