-
Notifications
You must be signed in to change notification settings - Fork 20
/
config.php
37 lines (28 loc) · 1006 Bytes
/
config.php
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
<?php
// Site Name | 网站名称
define('SITE_NAME', 'YOUR_SITE_NAME');
// Site Domain(without protocol but with www if need) | 网站域名 (不用加http,有需要就加www)
define('SITE_DOMAIN', 'YOUR_DOMAIN_NAME');
// HTTPS option | 是否开启HTTPS
define('ENABLE_HTTPS', 0);
// db options | 数据库连接
define('DB_HOST', '127.0.0.1');
define('DB_PORT', 3306);
define('DB_NAME', 'url');
define('DB_USER', 'url');
define('DB_PASS', 'url');
define('DB_TABLE', 'url');
// redis options (Future) | Redis设置 (尚未添加,下同)
define('RD_HOST', '127.0.0.1');
define('RD_PORT', 6379);
// Turn on the Redis Cache (Future) | Redis缓存功能
define('RD_CACHE', false);
// Turn on the Rate Limit (Future) | Redis限制访问速率
define('RD_LIMIT', false);
// Show All Error(Debug) | Debug模式
define('DEBUG_MODE',false);
// PHP Max Run Time | PHP超时
define('MAX_TIME_LIMIT',5);
// Short Ukey Length | 短链接长度
define('MIN_UKEY_LENGTH', 6);
define('MAX_UKEY_LENGTH', 6);