10 Star 15 Fork 8

wsdfz / nodeclub

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
config.default.js 3.00 KB
一键复制 编辑 原始数据 按行查看 历史
zhou.dacheng 提交于 2015-03-02 09:11 . Change to my config.
/**
* config
*/
var path = require('path');
var config = {
// debug 为 true 时,用于本地调试
debug: true,
get mini_assets() { return !this.debug; }, // 是否启用静态文件的合并压缩,详见视图中的Loader
name: 'IMS_CLUB',
description: 'IMS CLUB', // 社区的描述
keywords: 'nodejs, node, express, connect, socket.io',
// 添加到 html head 中的信息
site_headers: [
'<meta name="author" content="EDP@TAOBAO" />'
],
//site_logo: '/public/images/cnodejs_light.svg', // default is `name`
site_icon: '/public/images/cnode_icon_32.png', // 默认没有 favicon, 这里填写网址
// 右上角的导航区
site_navs: [
// 格式 [ path, title, [target=''] ]
[ '/about', '关于' ]
],
// cdn host,如 http://cnodejs.qiniudn.com
site_static_host: '', // 静态文件存储域名
// 社区的域名
host: 'localhost',
// 默认的Google tracker ID,自有站点请修改,申请地址:http://www.google.com/analytics/
google_tracker_id: '',
// 默认的cnzz tracker ID,自有站点请修改
cnzz_tracker_id: '',
// mongodb 配置
db: 'mongodb://127.0.0.1/node_club_dev',
db_name: 'node_club_dev',
session_secret: 'hello_pigman', // 务必修改
auth_cookie_name: 'node_club',
// 程序运行的端口
port: 8080,
// 话题列表显示的话题数量
list_topic_count: 20,
// 限制发帖时间间隔,单位:毫秒
post_interval: 2000,
// RSS配置
/*rss: {
title: 'CNode:Node.js专业中文社区',
link: 'http://cnodejs.org',
language: 'zh-cn',
description: 'CNode:Node.js专业中文社区',
//最多获取的RSS Item数量
max_rss_items: 50
}, */
// 邮箱配置
mail_opts: {
host: 'smtp.126.com',
port: 25,
auth: {
user: 'club@126.com',
pass: 'club'
}
},
//weibo app key
weibo_key: 10000000,
weibo_id: 'your_weibo_id',
// admin 可删除话题,编辑标签,设某人为达人
admins: { zadmin:true, admin: true },
// github 登陆的配置
GITHUB_OAUTH: {
clientID: 'your GITHUB_CLIENT_ID',
clientSecret: 'your GITHUB_CLIENT_SECRET',
callbackURL: 'http://cnodejs.org/auth/github/callback'
},
// 是否允许直接注册(否则只能走 github 的方式)
allow_sign_up: true,
// newrelic 是个用来监控网站性能的服务
newrelic_key: 'yourkey',
//7牛的access信息,用于文件上传
//qn_access: {
// accessKey: 'your access key',
// secretKey: 'your secret key',
// bucket: 'your bucket name',
// domain: 'http://{bucket}.qiniudn.com'
//},
//文件上传配置
//注:如果填写 qn_access,则会上传到 7牛,以下配置无效
upload: {
path: path.join(__dirname, 'public/upload/'),
url: '/public/upload/'
},
// 版块
tabs: [
['tips', '计算机技巧'],
['ims', 'IMS'],
['water', '灌水'],
['life', '生活'],
],
// 极光推送
jpush: {
appKey: 'your access key',
secretKey: 'your secret key'
}
};
module.exports = config;
JavaScript
1
https://gitee.com/wsdfz/nodeclub.git
git@gitee.com:wsdfz/nodeclub.git
wsdfz
nodeclub
nodeclub
master

搜索帮助