Spaces:
Running
Running
chore: remove unused CLOUDFLARE_ACCOUNT_ID from environment configuration and startup script
Browse files- .env.example +0 -3
- start.sh +6 -3
.env.example
CHANGED
|
@@ -62,9 +62,6 @@ OPENCODE_ALLOW_ALL_MODELS=true
|
|
| 62 |
# Get it from: https://dash.cloudflare.com/profile/api-tokens
|
| 63 |
# CLOUDFLARE_WORKERS_TOKEN=xxx
|
| 64 |
|
| 65 |
-
# Your Cloudflare account ID
|
| 66 |
-
# CLOUDFLARE_ACCOUNT_ID=xxx
|
| 67 |
-
|
| 68 |
# ============================================================================
|
| 69 |
# Database Backup Configuration
|
| 70 |
# ============================================================================
|
|
|
|
| 62 |
# Get it from: https://dash.cloudflare.com/profile/api-tokens
|
| 63 |
# CLOUDFLARE_WORKERS_TOKEN=xxx
|
| 64 |
|
|
|
|
|
|
|
|
|
|
| 65 |
# ============================================================================
|
| 66 |
# Database Backup Configuration
|
| 67 |
# ============================================================================
|
start.sh
CHANGED
|
@@ -169,13 +169,16 @@ if [ -f "${_CF_ENV}" ]; then
|
|
| 169 |
fi
|
| 170 |
|
| 171 |
# ββ Cloudflare proxy flag (applied inline to Paperclip only, not exported globally)
|
| 172 |
-
#
|
| 173 |
-
#
|
| 174 |
_CF_NODE_OPTS=""
|
| 175 |
-
if [ -f /app/cloudflare-proxy.js ]; then
|
| 176 |
_CF_NODE_OPTS="--require /app/cloudflare-proxy.js"
|
| 177 |
fi
|
| 178 |
|
|
|
|
|
|
|
|
|
|
| 179 |
# ββ Background sync loop ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 180 |
if [ -n "${HF_TOKEN:-}" ]; then
|
| 181 |
(
|
|
|
|
| 169 |
fi
|
| 170 |
|
| 171 |
# ββ Cloudflare proxy flag (applied inline to Paperclip only, not exported globally)
|
| 172 |
+
# Only enable if proxy is actually configured. Otherwise agent CLIs (claude, gemini,
|
| 173 |
+
# codex) inherit it via subprocess env and break their HTTP requests.
|
| 174 |
_CF_NODE_OPTS=""
|
| 175 |
+
if [ -n "${CLOUDFLARE_PROXY_URL:-}" ] && [ -f /app/cloudflare-proxy.js ]; then
|
| 176 |
_CF_NODE_OPTS="--require /app/cloudflare-proxy.js"
|
| 177 |
fi
|
| 178 |
|
| 179 |
+
# ββ Disable Gemini CLI sandbox (would try to start Docker inside Docker) βββββ
|
| 180 |
+
export GEMINI_SANDBOX=false
|
| 181 |
+
|
| 182 |
# ββ Background sync loop ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 183 |
if [ -n "${HF_TOKEN:-}" ]; then
|
| 184 |
(
|