Permalink
Browse files

配置文件例子

  • Loading branch information...
1 parent 71aa98a commit 866d2e010dfb9112255cd31cf71e742510afcb31 @xinyu198736 committed May 4, 2014
Showing with 53 additions and 0 deletions.
  1. +53 −0 config.coffee.example
View
@@ -0,0 +1,53 @@
+config =
+ run_port:5678
+ socket_port:8765
+
+ mysql_table:"htmljs"
+ mysql_username:"root" #数据库用户名
+ mysql_password:"" #数据库密码
+ mysql_host:"127.0.0.1"
+
+
+ upload_path:__dirname+"/uploads/"
+ base_path:__dirname
+ session_secret:"fd2afdsafdvcxzjaklfdsa"
+
+ #又拍云配置
+ "upyun_bucketname":"***"
+ "upyun_username":"***"
+ "upyun_password":"***"
+
+ script_ext:".coffee"
+ assets_head:"http://www.html-js.com/assets"#http://htmljs.b0.upaiyun.com/"
+ base_host:"http://www.html-js.com"
+
+ day_coin_max:1000
+ day_bi_max:1000
+
+ sdks:
+ sina:
+ app_key:"***"
+ app_secret:"***"
+ redirect_uri : 'http://www.html-js.com/user/sina_cb'
+ #邮件使用sendcloud
+ mail:
+ api_key : '***',
+ api_user : 'postmaster@htmljs.sendcloud.org'
+ from : 'postmaster@htmljs.sendcloud.org'
+ fromname : '前端乱炖官方'
+ api_user_list:"postmaster@htmljsmessage.sendcloud.org"
+ api_key_list:"***"
+
+ #每个操作的加分
+ bi:
+ article:100
+ question:10
+ answer:5
+ good_answer:10
+ topic:3
+ reply_topic:1
+ card:50
+ zan:1
+ zan_by:2
+ xunsearch_bin:"/private/var/root/xunsearch/sdk/php/"
+global.__C = module.exports = config

0 comments on commit 866d2e0

Please sign in to comment.