作者 yangfu

配置修改

@@ -12,7 +12,8 @@ aliyun_logs_access ="${aliyun_logs_access||app.log}" @@ -12,7 +12,8 @@ aliyun_logs_access ="${aliyun_logs_access||app.log}"
12 12
13 13
14 #redis相关配置 14 #redis相关配置
15 -redis_add_port = "192.168.100.102:6379" 15 +redis_add = "${REDIS_IP||192.168.100.102}"
  16 +redis_add_port = "${REDIS_PORT||6379}"
16 redis_auth = "123456" 17 redis_auth = "123456"
17 18
18 #sms相关配置 19 #sms相关配置
1 [test] 1 [test]
2 #数据库相关 2 #数据库相关
3 mysql_user = "${MYSQL_USER||root}" 3 mysql_user = "${MYSQL_USER||root}"
4 -mysql_password = "${MYSQL_PASSWORD||123456}"  
5 -mysql_host = "${MYSQL_HOST||192.168.100.102}" 4 +mysql_password = "${MYSQL_PASSWORD||sutianxia2015}"
  5 +mysql_host = "${MYSQL_HOST||115.29.205.99}"
6 mysql_port = "${MYSQL_PORT||3306}" 6 mysql_port = "${MYSQL_PORT||3306}"
7 mysql_db_name = "${MYSQL_DB_NAME||opportunity}" 7 mysql_db_name = "${MYSQL_DB_NAME||opportunity}"
8 8
9 #日志 9 #日志
10 log_level = "${LOG_LEVEL||debug}" 10 log_level = "${LOG_LEVEL||debug}"
11 -aliyun_logs_access ="app.log" 11 +aliyun_logs_access ="${aliyun_logs_access||app.log}"
12 12
13 13
14 #redis相关配置 14 #redis相关配置
15 -redis_add_port = "192.168.100.102:6379"  
16 -redis_auth = "123456" 15 +redis_add = "${REDIS_IP||192.168.100.102}"
  16 +redis_add_port = "${REDIS_PORT||6379}"
  17 +redis_auth = ""
17 18
18 #sms相关配置 19 #sms相关配置
19 yunpian_sms_sdk_url ="https://sms.yunpian.com/v2/sms/single_send.json" 20 yunpian_sms_sdk_url ="https://sms.yunpian.com/v2/sms/single_send.json"
20 yunpian_app_key ="0bf6fb10a11a68a95dee80901eb545b5" 21 yunpian_app_key ="0bf6fb10a11a68a95dee80901eb545b5"
21 22
22 #存储 http://ability.fjmaimaimai.com:8080/ 23 #存储 http://ability.fjmaimaimai.com:8080/
23 -source_host ="http://192.168.139.131:8080/" 24 +source_host ="http://192.168.139.137:8080/"
24 source_virtual_path=file/opp 25 source_virtual_path=file/opp
25 -source_path =/www/opp 26 +source_path ="${aliyun_file_access||~/www/opp}
26 27
27 #网易云信 IM 28 #网易云信 IM
28 net_im_base_url ="https://api.netease.im/nimserver" 29 net_im_base_url ="https://api.netease.im/nimserver"
29 net_im_app_secret ="a8d231f5c13a" 30 net_im_app_secret ="a8d231f5c13a"
30 -net_im_app_key ="9c5410602597a7fe367aeeebd8210262"  
  31 +net_im_app_key ="9c5410602597a7fe367aeeebd8210262"
  32 +
  33 +#统一用户中心 39aefef9e22744a3b2d2d3791824ae7b
  34 +user_center_url ="http://suplus-ucenter-dev.fjmaimaimai.com"
  35 +user_center_salt ="rsF0pL!6DwjBO735"
  36 +user_center_app_key ="39aefef9e22744a3b2d2d3791824ae7b"
  37 +user_center_app_secret ="cykbjnfqgctn"
@@ -28,9 +28,10 @@ func init() { @@ -28,9 +28,10 @@ func init() {
28 // Addrs: []string{"127.0.0.1:9092"}, 28 // Addrs: []string{"127.0.0.1:9092"},
29 // Level: 6, 29 // Level: 6,
30 //}) 30 //})
31 - err := redis.InitWithDb(100, beego.AppConfig.String("redis_add_port"), beego.AppConfig.String("redis_auth"), "0") 31 + redisSource := fmt.Sprintf("%v:%v", beego.AppConfig.String("redis_add"), beego.AppConfig.String("redis_add_port"))
  32 + err := redis.InitWithDb(100, redisSource, beego.AppConfig.String("redis_auth"), "0")
32 if err != nil { 33 if err != nil {
33 - log.Fatal("connect to redis error address:",beego.AppConfig.String("redis_add_port"), beego.AppConfig.String("redis_auth"),err) 34 + log.Fatal("connect to redis error address:", beego.AppConfig.String("redis_add_port"), beego.AppConfig.String("redis_auth"), err)
34 panic(err) 35 panic(err)
35 } 36 }
36 dataSource := fmt.Sprintf("%s:%s@tcp(%s:%s)/%s?loc=Asia%%2FShanghai", 37 dataSource := fmt.Sprintf("%s:%s@tcp(%s:%s)/%s?loc=Asia%%2FShanghai",