Align auth persistence paths and rebuild for latest CLIProxyAPI release
Browse filesKeep existing config.yaml, continue using bucket-backed /data/auths, and trigger a Space rebuild that downloads the latest upstream CLIProxyAPI release during Docker build.
- Dockerfile +2 -2
- supabase-sync.sh +1 -1
Dockerfile
CHANGED
|
@@ -29,13 +29,13 @@ RUN echo '#!/bin/bash\n\
|
|
| 29 |
envsubst < /app/config.template.yaml > /app/config.yaml\n\
|
| 30 |
\n\
|
| 31 |
# Create auths directory\n\
|
| 32 |
-
mkdir -p /
|
| 33 |
\n\
|
| 34 |
# Download auth files from Supabase Storage\n\
|
| 35 |
echo "=== Downloading auth files from Supabase ==="\n\
|
| 36 |
/app/supabase-sync.sh download || echo "Supabase download skipped"\n\
|
| 37 |
\n\
|
| 38 |
-
echo "=== Auth files loaded: $(find /
|
| 39 |
\n\
|
| 40 |
# Start file watcher in background (sync changes to Supabase)\n\
|
| 41 |
/app/supabase-sync.sh watch &\n\
|
|
|
|
| 29 |
envsubst < /app/config.template.yaml > /app/config.yaml\n\
|
| 30 |
\n\
|
| 31 |
# Create auths directory\n\
|
| 32 |
+
mkdir -p /data/auths\n\
|
| 33 |
\n\
|
| 34 |
# Download auth files from Supabase Storage\n\
|
| 35 |
echo "=== Downloading auth files from Supabase ==="\n\
|
| 36 |
/app/supabase-sync.sh download || echo "Supabase download skipped"\n\
|
| 37 |
\n\
|
| 38 |
+
echo "=== Auth files loaded: $(find /data/auths -name "*.json" | wc -l) ==="\n\
|
| 39 |
\n\
|
| 40 |
# Start file watcher in background (sync changes to Supabase)\n\
|
| 41 |
/app/supabase-sync.sh watch &\n\
|
supabase-sync.sh
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
# Bucket: clipro, Path: auths/
|
| 4 |
|
| 5 |
BUCKET="clipro"
|
| 6 |
-
AUTH_DIR="/
|
| 7 |
SUPABASE_API="${SUPABASE_URL}/storage/v1"
|
| 8 |
|
| 9 |
# Upload a single file to Supabase Storage
|
|
|
|
| 3 |
# Bucket: clipro, Path: auths/
|
| 4 |
|
| 5 |
BUCKET="clipro"
|
| 6 |
+
AUTH_DIR="/data/auths"
|
| 7 |
SUPABASE_API="${SUPABASE_URL}/storage/v1"
|
| 8 |
|
| 9 |
# Upload a single file to Supabase Storage
|