-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.js
73 lines (65 loc) · 2.03 KB
/
config.js
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/**
* 文件说明: 配置文件
* 详细描述:
* 创建者: 姜赟
* 创建时间: 16/1/29
* 变更记录:
*/
module.exports = {
// 接口代理配置
API_PROXY_CONFIG: {
DEBUG: true,
path: '/tc',
host: 'http://'+WEBSITE_HOST,
changeOrigin: true,
websockets: false,
// 本地存储键值
STORAGE_KEY: {
TOKEN: 'tf-token',
UID: 'tf-uid'
},
// 测试环境帐号
TEST_ACCOUNT: {
//TOKEN: '90d3e5e7069bd85700df17cbf59d92a8',
//UID: '407988047842'
},
// pathRewrite: 规则重写
pathRewrite: {
//'/oldApi': '/newApi'
}
},
//服务端接口服务器配置
API_SERVER: {
host: 'http://'+WEBSITE_HOST,
path: '/tc'
},
//默认TDK
TDK: {
title: '时光流影TIMEFACE – 全球首个文化生活自出版社交平台',
description: '时光流影TIMEFACE是时代出版倾力打造的集图片分享、文章阅读、话题讨论、活动交流为一体的文化生活类自出版社交平台,用户可以在平台分享自己的时光并制作成POD时光书,更能在线申请打印出版。每个人的时光,都是一本流影的书。',
keywords: '自出版, 时光流影, POD'
},
// 可以公开访问的路径
VALID_USER_CENTER_PATH:[
'/pod',
'/time/',
'/404',
'/500',
'/errorPage'
],
// 需要圈访问权限的路径
NEED_GROUPINFO_PATH:[
'/makeBook',
'/edit/',
'/address',
'/books',
'/faces',
'/publish'
],
// MOCK 数据 开启
NODE_ENV_MOCK: false,
// resetCss 标签和地址
RESE_CSS_URL:'<link href="//cdn.bootcss.com/meyer-reset/2.0/reset.min.css" rel="stylesheet">',
// 百度统计代码
BAIDU_CODE: '<script>var _hmt = _hmt || [];(function() {var hm = document.createElement("script");hm.src = "//hm.baidu.com/hm.js?cfa10242ad04277ae2a1ff2c15508841";var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s);})();</script><script>(function(){var b=document.createElement("script");b.src="//push.zhanzhang.baidu.com/push.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(b,a)})();</script>'
};