初始版本,工具基础类
This commit is contained in:
74
config/example.json
Normal file
74
config/example.json
Normal file
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"database": {
|
||||
"type": "mysql",
|
||||
"host": "localhost",
|
||||
"port": 3306,
|
||||
"user": "root",
|
||||
"password": "password",
|
||||
"database": "testdb",
|
||||
"charset": "utf8mb4",
|
||||
"maxOpenConns": 100,
|
||||
"maxIdleConns": 10,
|
||||
"connMaxLifetime": 3600
|
||||
},
|
||||
"oss": {
|
||||
"provider": "aliyun",
|
||||
"endpoint": "oss-cn-hangzhou.aliyuncs.com",
|
||||
"accessKeyId": "your-access-key-id",
|
||||
"accessKeySecret": "your-access-key-secret",
|
||||
"bucket": "your-bucket-name",
|
||||
"region": "cn-hangzhou",
|
||||
"useSSL": true,
|
||||
"domain": "https://cdn.example.com"
|
||||
},
|
||||
"redis": {
|
||||
"host": "localhost",
|
||||
"port": 6379,
|
||||
"password": "",
|
||||
"database": 0,
|
||||
"maxRetries": 3,
|
||||
"poolSize": 10,
|
||||
"minIdleConns": 5,
|
||||
"dialTimeout": 5,
|
||||
"readTimeout": 3,
|
||||
"writeTimeout": 3
|
||||
},
|
||||
"cors": {
|
||||
"allowedOrigins": ["*"],
|
||||
"allowedMethods": ["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"],
|
||||
"allowedHeaders": ["Content-Type", "Authorization", "X-Requested-With", "X-Timezone"],
|
||||
"exposedHeaders": [],
|
||||
"allowCredentials": false,
|
||||
"maxAge": 86400
|
||||
},
|
||||
"minio": {
|
||||
"endpoint": "localhost:9000",
|
||||
"accessKeyId": "minioadmin",
|
||||
"secretAccessKey": "minioadmin",
|
||||
"useSSL": false,
|
||||
"bucket": "test-bucket",
|
||||
"region": "us-east-1",
|
||||
"domain": "http://localhost:9000"
|
||||
},
|
||||
"email": {
|
||||
"host": "smtp.example.com",
|
||||
"port": 587,
|
||||
"username": "your-email@example.com",
|
||||
"password": "your-email-password",
|
||||
"from": "your-email@example.com",
|
||||
"fromName": "Your App Name",
|
||||
"useTLS": true,
|
||||
"useSSL": false,
|
||||
"timeout": 30
|
||||
},
|
||||
"sms": {
|
||||
"accessKeyId": "your-aliyun-access-key-id",
|
||||
"accessKeySecret": "your-aliyun-access-key-secret",
|
||||
"region": "cn-hangzhou",
|
||||
"signName": "Your Sign Name",
|
||||
"templateCode": "SMS_123456789",
|
||||
"endpoint": "",
|
||||
"timeout": 10
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user