chore:Add the whitelist of webdev endpoints to data.yml and Docker Co… (#1513)
* chore:Add the whitelist of webdev endpoints to data.yml and Docker Compose.yml to allow webdav synchronization * fix:添加更新脚本,添加WHITE_WEBDEV_ENDPOINTS参数
This commit is contained in:
parent
84866325a6
commit
aaecfa6080
|
|
@ -37,4 +37,11 @@ additionalProperties:
|
||||||
labelEn: API interface address
|
labelEn: API interface address
|
||||||
labelZh: API接口地址
|
labelZh: API接口地址
|
||||||
required: true
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: WHITE_WEBDEV_ENDPOINTS
|
||||||
|
labelEn: White list of webdev endpoints
|
||||||
|
labelZh: webdev 白名单
|
||||||
|
required: false
|
||||||
type: text
|
type: text
|
||||||
|
|
@ -11,6 +11,7 @@ services:
|
||||||
- "CODE=${SECRET_KEY}"
|
- "CODE=${SECRET_KEY}"
|
||||||
- "PROXY_URL=${PROXY}"
|
- "PROXY_URL=${PROXY}"
|
||||||
- "BASE_URL=${API_BASE_URL}"
|
- "BASE_URL=${API_BASE_URL}"
|
||||||
|
- "WHITE_WEBDEV_ENDPOINTS=${WHITE_WEBDEV_ENDPOINTS}"
|
||||||
image: yidadaa/chatgpt-next-web:v2.12.3
|
image: yidadaa/chatgpt-next-web:v2.12.3
|
||||||
labels:
|
labels:
|
||||||
createdBy: "Apps"
|
createdBy: "Apps"
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
Loading…
Reference in New Issue