152228d41f
- 页面直接引用 local.js 设置 SOON_DEPLOY_CONFIG,移除 deploy-config - Docker sync-config 生成 local.js;更新 README 与 agent-core 说明 - 模板库自动扫描 .soon;新增后端部署/种子/排查脚本 - 完善支付配置、订阅弹窗与后台支付管理页 Co-authored-by: Cursor <cursoragent@cursor.com>
61 lines
1.8 KiB
Plaintext
61 lines
1.8 KiB
Plaintext
<?php
|
|
// 本地开发 / 默认值。生产请复制为 local.php 并填入真实密钥。
|
|
return [
|
|
'app' => [
|
|
'env' => 'production',
|
|
'debug' => false,
|
|
'timezone' => 'Asia/Shanghai',
|
|
'jwt_secret' => 'CHANGE-ME-32CHARS-MINIMUM-SECRET',
|
|
'jwt_ttl' => 3600,
|
|
'jwt_refresh_ttl' => 2592000,
|
|
'cors_origins' => [
|
|
'https://design.cardsoon.com',
|
|
],
|
|
],
|
|
'db' => [
|
|
'host' => '127.0.0.1',
|
|
'port' => 3306,
|
|
'name' => 'soondesign',
|
|
'user' => 'soondesign',
|
|
'pass' => 'CHANGE-ME',
|
|
'charset' => 'utf8mb4',
|
|
],
|
|
'site' => [
|
|
'base_url' => 'https://designadmin.cardsoon.com',
|
|
'front_base_url' => 'https://design.cardsoon.com',
|
|
],
|
|
'storage' => [
|
|
'users_dir' => '/www/wwwroot/designadmin.cardsoon.com/backend/storage/users',
|
|
'models_dir' => '/www/wwwroot/designadmin.cardsoon.com/soonModels',
|
|
],
|
|
'limits' => [
|
|
'free_quota_mb' => 20,
|
|
'preview_require_membership' => true,
|
|
'member_quota_mb' => 2048,
|
|
'member_max_files' => 200,
|
|
],
|
|
'rate_limits' => [
|
|
'admin/*' => ['capacity' => 120, 'window' => 60],
|
|
'POST /api/v1/auth/login' => ['capacity' => 10, 'window' => 60],
|
|
'POST /api/v1/auth/register' => ['capacity' => 5, 'window' => 60],
|
|
'POST /api/v1/files' => ['capacity' => 30, 'window' => 60],
|
|
],
|
|
'alipay' => [
|
|
'app_id' => '',
|
|
'private_key' => '',
|
|
'public_key' => '',
|
|
'sandbox' => false,
|
|
],
|
|
'wechat' => [
|
|
'app_id' => '',
|
|
'mch_id' => '',
|
|
'mch_serial_no' => '',
|
|
'mch_private_key' => '',
|
|
'api_v3_key' => '',
|
|
'sandbox' => false,
|
|
],
|
|
'payment' => [
|
|
'display_channels' => 'alipay',
|
|
],
|
|
];
|