-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.php
More file actions
40 lines (36 loc) · 888 Bytes
/
Copy pathconfig.php
File metadata and controls
40 lines (36 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
// 存储配置
$config = [
'debug' => true,
'storage' => [
'type' => 'sqlite',
'config' => [
// JSON 配置
'path' => __DIR__ . '/data/data.db',
]
],
// 图片存储配置
'image_storage' => [
'path' => __DIR__ . '/data/image',
'max_size' => 5 * 1024 * 1024, // 5MB
'allowed_types' => [
'image/jpeg' => '.jpg',
'image/png' => '.png',
'image/gif' => '.gif',
'image/webp' => '.webp'
]
],
'api' => [
'token' => [
'调用方ID' => [
'调用方应用ID' => '调用方Token'
]
]
],
'admin' => [
'name' => '管理员用户名',
'password' => '管理员密码',
'log_file' => __DIR__ . '/data/log/admin_actions.log'
]
];
return $config;