diff --git a/apps/chatgpt-next-web/2.12.3/data.yml b/apps/chatgpt-next-web/2.12.3/data.yml index c1c32268a..8fda84336 100644 --- a/apps/chatgpt-next-web/2.12.3/data.yml +++ b/apps/chatgpt-next-web/2.12.3/data.yml @@ -37,4 +37,11 @@ additionalProperties: labelEn: API interface address labelZh: API接口地址 required: true + type: text + - default: "" + edit: true + envKey: WHITE_WEBDEV_ENDPOINTS + labelEn: White list of webdev endpoints + labelZh: webdev 白名单 + required: false type: text \ No newline at end of file diff --git a/apps/chatgpt-next-web/2.12.3/docker-compose.yml b/apps/chatgpt-next-web/2.12.3/docker-compose.yml index 1655e065c..7186f8ba7 100644 --- a/apps/chatgpt-next-web/2.12.3/docker-compose.yml +++ b/apps/chatgpt-next-web/2.12.3/docker-compose.yml @@ -11,6 +11,7 @@ services: - "CODE=${SECRET_KEY}" - "PROXY_URL=${PROXY}" - "BASE_URL=${API_BASE_URL}" + - "WHITE_WEBDEV_ENDPOINTS=${WHITE_WEBDEV_ENDPOINTS}" image: yidadaa/chatgpt-next-web:v2.12.3 labels: createdBy: "Apps" diff --git a/apps/chatgpt-next-web/2.12.3/scripts/upgrade.sh b/apps/chatgpt-next-web/2.12.3/scripts/upgrade.sh new file mode 100644 index 000000000..170e0c4ba --- /dev/null +++ b/apps/chatgpt-next-web/2.12.3/scripts/upgrade.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if [[ -f ./.env ]]; then + if grep -q "WHITE_WEBDEV_ENDPOINTS" ./.env; then + echo "WHITE_WEBDEV_ENDPOINTS 已存在" + else + echo 'WHITE_WEBDEV_ENDPOINTS=""' >> ./.env + fi +else + echo ".env 文件不存在" +fi \ No newline at end of file