This repository was archived by the owner on Mar 4, 2019. It is now read-only.
forked from etng/youbbs
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.sample.php
More file actions
57 lines (43 loc) · 1.5 KB
/
Copy pathconfig.sample.php
File metadata and controls
57 lines (43 loc) · 1.5 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
define('ROOT', dirname(__FILE__));
if (!defined('IN_SAESPOT')) {
include_once(dirname(__FILE__) . '/error/403.php');
exit;
};
/*********************************
******** 请修改以下设置 *********
*********************************/
// bucket 名称,访问 http://developer.baidu.com/bae/bcs/bucket/ 查看
define('BUCKET', 'bucket_name_here');
// 数据库名,参见 http://developer.baidu.com/wiki/index.php?title=docs/cplat/rt/php/mysql#.E7.AE.A1.E7.90.86
$dbname = 'database_name_here';
/*********************************
******* 请不要再继续编辑 ********
*** 请保存本文件为 config.php ***
*********************************/
//AK 公钥
define ('BCS_AK', getenv('HTTP_BAE_ENV_AK'));
//SK 私钥
define ('BCS_SK', getenv('HTTP_BAE_ENV_SK'));
//数据库主机名或IP
$servername = getenv('HTTP_BAE_ENV_ADDR_SQL_IP');
//数据端口
$dbport = getenv('HTTP_BAE_ENV_ADDR_SQL_PORT');
//MySQL字符集
$dbcharset = 'utf8';
//系统默认字符集
$charset = 'utf-8';
// 定义头像、图库基础网址
define('TUCHUANG_URL', 'http://bcs.duapp.com/'.BUCKET);
// 定义缓存
require('BaeMemcache.class.php');
$MMC = new BaeMemcache();
/*********************************
************* BCS ***************
*********************************/
define ( 'BCS_HOST', 'bcs.duapp.com' );
//superfile 每个object分片后缀
define ( 'BCS_SUPERFILE_POSTFIX', '_bcs_superfile_' );
//sdk superfile分片大小 ,单位 B(字节)
define ( 'BCS_SUPERFILE_SLICE_SIZE', 1024 * 1024 );
?>