8900 commited on
Commit ·
d5943c7
1
Parent(s): 77c0e41
Update entrypoint.sh
Browse files- entrypoint.sh +11 -0
entrypoint.sh
CHANGED
|
@@ -10,6 +10,17 @@ fi
|
|
| 10 |
|
| 11 |
echo "[entrypoint] OPENCLAW_HOME=$OPENCLAW_HOME"
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
# dynamically export all provider keys so openclaw gateway can read them
|
| 14 |
# matches: *_API_KEY *_SECRET_KEY *_ACCESS_TOKEN *_BOT_TOKEN *_AUTH_TOKEN *_APP_KEY
|
| 15 |
# excludes: OPENCLAW_ SPACE_ SYSTEM_ HF_SPACE NODE_ prefixes
|
|
|
|
| 10 |
|
| 11 |
echo "[entrypoint] OPENCLAW_HOME=$OPENCLAW_HOME"
|
| 12 |
|
| 13 |
+
# 显式导出网关令牌(如果存在),确保网关能读取
|
| 14 |
+
if [ -n "$OPENCLAW_GATEWAY_TOKEN" ]; then
|
| 15 |
+
export OPENCLAW_GATEWAY_TOKEN
|
| 16 |
+
echo "[entrypoint] Gateway token is set (use this in Control UI): $OPENCLAW_GATEWAY_TOKEN"
|
| 17 |
+
elif [ -n "$OPENCLAW_GATEWAY_PASSWORD" ]; then
|
| 18 |
+
export OPENCLAW_GATEWAY_PASSWORD
|
| 19 |
+
echo "[entrypoint] Gateway password is set (use this in Control UI)"
|
| 20 |
+
else
|
| 21 |
+
echo "[entrypoint] WARNING: Neither OPENCLAW_GATEWAY_TOKEN nor OPENCLAW_GATEWAY_PASSWORD is set. Gateway will be unprotected!"
|
| 22 |
+
fi
|
| 23 |
+
|
| 24 |
# dynamically export all provider keys so openclaw gateway can read them
|
| 25 |
# matches: *_API_KEY *_SECRET_KEY *_ACCESS_TOKEN *_BOT_TOKEN *_AUTH_TOKEN *_APP_KEY
|
| 26 |
# excludes: OPENCLAW_ SPACE_ SYSTEM_ HF_SPACE NODE_ prefixes
|