ebe191b06d
- 会员改为永久激活方案;云端文件不再拦截非会员;预览弹窗内导出/打印才校验 - 首页最近文件支持本地记录,登录后与云端合并;移除独立会员页与订阅页 - 模板库入库管理:soon_templates 表、Admin 上传 CRUD、/templates 轻量列表与按需下载 Co-authored-by: Cursor <cursoragent@cursor.com>
62 lines
1.9 KiB
Plaintext
62 lines
1.9 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',
|
|
'templates_dir' => '/www/wwwroot/designadmin.cardsoon.com/backend/storage/templates',
|
|
],
|
|
'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',
|
|
],
|
|
];
|