sarkyboy commited on
Commit
459f994
·
1 Parent(s): ed5fbab

final: restore backup hash and cleanup entrypoint

Browse files
Files changed (2) hide show
  1. config.yaml +2 -1
  2. entrypoint.sh +0 -14
config.yaml CHANGED
@@ -4,7 +4,8 @@ port: 8317
4
  # Remote management settings
5
  remote-management:
6
  allow-remote: true
7
- # secret-key removed; using MANAGEMENT_PASSWORD env var instead
 
8
  disable-control-panel: false
9
 
10
  # Authentication directory
 
4
  # Remote management settings
5
  remote-management:
6
  allow-remote: true
7
+ # Fallback authentication: Pre-computed bcrypt hash for "sarky880309"
8
+ secret-key: "$2b$12$jBnMMt3ey2Ft.2sCvWw9WeuvN7UkFr.GBX2EjfOztDwuSLj2goMG2"
9
  disable-control-panel: false
10
 
11
  # Authentication directory
entrypoint.sh CHANGED
@@ -46,19 +46,5 @@ if [ -n "$DB_URL" ]; then
46
  echo "[entrypoint] DATABASE_URL is set"
47
  fi
48
 
49
- echo "=== [DEBUG] Environment Variables ==="
50
- echo "MANAGEMENT_PASSWORD (len): ${#MANAGEMENT_PASSWORD}"
51
- echo "DEPLOY: $DEPLOY"
52
- echo "DATABASE_URL (set?): $([ -n "$DATABASE_URL" ] && echo "yes" || echo "no")"
53
-
54
- echo "=== [DEBUG] Current Directory Structure ==="
55
- ls -lR /CLIProxyAPI
56
-
57
- echo "=== [DEBUG] Final config.yaml content ==="
58
- cat "$CONFIG"
59
- echo "========================="
60
-
61
- # 启动后台自测已移除
62
-
63
  # 使用 --config 参数指定配置文件路径(官方云部署方式)
64
  exec /CLIProxyAPI/CLIProxyAPI --config "$CONFIG"
 
46
  echo "[entrypoint] DATABASE_URL is set"
47
  fi
48
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  # 使用 --config 参数指定配置文件路径(官方云部署方式)
50
  exec /CLIProxyAPI/CLIProxyAPI --config "$CONFIG"