PRINTFILM: AI short-video marketing and AI short-drama creation platform
chore: move OSS/EPAY secrets to local-only config
yid980c27bb271
diff --git a/.gitignore b/.gitignoreindex 7eaf73e..7159d24 100644--- a/.gitignore+++ b/.gitignore@@ -32,6 +32,8 @@ venv/!**/.env.example!**/.env.*.example!frontend/.env.production+backend/.env.secrets.local+deploy/.env.secrets.localdeploy/.env.proddeploy/scripts/deploy_kepu.pydeploy/scripts/deploy_kepu_8136.pydiff --git a/backend/.env.example b/backend/.env.exampleindex 5efd660..783350f 100644--- a/backend/.env.example+++ b/backend/.env.example@@ -13,8 +13,8 @@ DATABASE_URL_SYNC=sqlite:///./ai_movie.db# DB_POOL_SIZE_CELERY=2# DB_MAX_OVERFLOW_CELERY=3REDIS_URL=redis://127.0.0.1:6379/0-CORS_ORIGINS=http://localhost:5173,http://127.0.0.1:5173,http://localhost:5174,http://127.0.0.1:5174,http://192.168.110.88:5173-PUBLIC_BASE_URL=http://192.168.110.88:8000+CORS_ORIGINS=http://localhost:5173,http://127.0.0.1:5173,http://localhost:5174,http://127.0.0.1:5174+PUBLIC_BASE_URL=http://127.0.0.1:8000# 启动时将已有账号提升为 admin(逗号分隔邮箱,不造号)@@ -48,8 +48,9 @@ EPAY_API_URL=https://pay.gitcc.comEPAY_PID=EPAY_KEY=# 生产 notify 勿含 /api/(易支付 WAF 会拦截);线上 nginx 反代 /epay/notify → /api/billing/epay/notify-# EPAY_NOTIFY_URL=https://kepu.printfilm.com/epay/notify-# EPAY_RETURN_URL=https://kepu.printfilm.com/pricing?paid=1+# EPAY_NOTIFY_URL=https://your-site.example.com/epay/notify+# EPAY_RETURN_URL=https://your-site.example.com/pricing?paid=1+# 真实 OSS / EPAY / 生产域名见本机 backend/.env.secrets.local(勿提交)# 旗舰模型(需在方舟控制台开通;若账号仅支持接入点,可改为 ep-xxxxxxxx)# 文字模型见上方 OPENAI_* / MODEL_LLM;以下为 Seedream/Seedance/TTSdiff --git a/deploy/.env.prod.example b/deploy/.env.prod.exampleindex d061e76..1f1672c 100644--- a/deploy/.env.prod.example+++ b/deploy/.env.prod.example@@ -15,8 +15,9 @@ DB_POOL_SIZE_CELERY=2DB_MAX_OVERFLOW_CELERY=3REDIS_URL=redis://127.0.0.1:16379/0-PUBLIC_BASE_URL=https://kepu.printfilm.com-CORS_ORIGINS=https://kepu.printfilm.com,https://admin.kepu.printfilm.com,https://www.printfilm.com,https://printfilm.com,https://admin.printfilm.com+PUBLIC_BASE_URL=https://your-site.example.com+CORS_ORIGINS=https://your-site.example.com,https://admin.your-site.example.com+# 真实生产域名见本机 backend/.env.secrets.local(勿提交)ARK_MOCK=false@@ -37,8 +38,8 @@ EPAY_API_URL=https://pay.gitcc.comEPAY_PID=EPAY_KEY=# 勿用含 /api/ 的 notify(pay.gitcc.com WAF 会拦);nginx 将 /epay/notify 反代到后端-EPAY_NOTIFY_URL=https://kepu.printfilm.com/epay/notify-EPAY_RETURN_URL=https://kepu.printfilm.com/pricing?paid=1+EPAY_NOTIFY_URL=https://your-site.example.com/epay/notify+EPAY_RETURN_URL=https://your-site.example.com/pricing?paid=1CELERY_AUTOSCALE_MIN=1CELERY_AUTOSCALE_MAX=3diff --git a/deploy/README.md b/deploy/README.mdindex 81c38c0..21e74c5 100644--- a/deploy/README.md+++ b/deploy/README.md@@ -106,5 +106,5 @@ OSS_ACCESS_KEY_SECRET=...```bashcd frontend && npm run buildcd ../backend && .venv/bin/python ../deploy/scripts/upload_oss_web.py-# → https://your-bucket.oss-cn-beijing.aliyuncs.com/kepu/index.html+# → https://{bucket}.oss-cn-beijing.aliyuncs.com/kepu/index.html```diff --git a/docs/BILLING.md b/docs/BILLING.mdindex c61438f..13e2049 100644--- a/docs/BILLING.md+++ b/docs/BILLING.md@@ -37,10 +37,10 @@ charge_fen = ceil(tokens / 1e6 * provider_yuan_per_m * markup * 100)BILLING_ENABLED=trueBILLING_MARKUP=1.5EPAY_API_URL=https://pay.gitcc.com-EPAY_PID=+EPAY_PID=your-epay-pidEPAY_KEY=***-EPAY_NOTIFY_URL=https://kepu.printfilm.com/api/billing/epay/notify-EPAY_RETURN_URL=https://kepu.printfilm.com/pricing?paid=1+EPAY_NOTIFY_URL=https://your-site.example.com/epay/notify+EPAY_RETURN_URL=https://your-site.example.com/pricing?paid=1```下单:服务端 `POST {EPAY_API_URL}/mapi.php`(扫码),MD5 签名(参数 ASCII 排序,排除 sign/sign_type,末尾拼 KEY)。返回 `qrcode` / `payurl` 供前端弹窗展示二维码。