application-dev.yml 2.99 KB
Newer Older
刘基明's avatar
刘基明 committed
1
apollo.bootstrap.enabled: false
张辰's avatar
张辰 committed
2
#app.id: tanpu-community
xd's avatar
xd committed
3

刘基明's avatar
刘基明 committed
4 5 6 7 8
springfox:
  documentation:
    swagger:
      v2:
        path: /api-docs
张辰's avatar
张辰 committed
9 10 11 12 13
#apollo:
#  meta: http://dev-apollo.tamp-innner.com:8080
#  cacheDir: ./apollocache/
#  bootstrap:
#    namespaces: application.yml
xd's avatar
xd committed
14

张辰's avatar
张辰 committed
15
server:
刘基明's avatar
刘基明 committed
16
  port: 8080
张辰's avatar
张辰 committed
17 18
  servlet:
    context-path: /community
xd's avatar
xd committed
19 20 21
spring.datasource:
  community:
    driver-class-name: com.mysql.cj.jdbc.Driver
刘基明's avatar
刘基明 committed
22 23 24
    jdbc-url: jdbc:mysql://rm-uf6lqwk9969zao53uro.mysql.rds.aliyuncs.com:3306/tamp_community?useUnicode=true&characterEncoding=utf-8&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull
    username: dev
    password: 'qimeng123'
刘基明's avatar
刘基明 committed
25 26 27
    maxActive: 2
    minIdle: 2
    initialSize: 2
张辰's avatar
张辰 committed
28 29 30 31 32 33 34
#  user:
#    driver-class-name: com.mysql.cj.jdbc.Driver
#    jdbc-url: jdbc:mysql://rm-uf6r22t3d798q4kmkao.mysql.rds.aliyuncs.com:3306/tamp_user?useUnicode=true&characterEncoding=utf-8&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull
#    password: '@imeng123'
#    maxActive: 2
#    minIdle: 2
#    initialSize: 2
张辰's avatar
张辰 committed
35 36 37 38 39 40

spring.redis:
  host: 118.190.63.109
  port: 56379
  password: qimeng123
  timeout: 2000
张辰's avatar
张辰 committed
41 42 43
  max-active: 5
  max-wait: 5
  max-idle: 5
张辰's avatar
张辰 committed
44 45 46 47 48 49
  jedis:
    pool:
      max-active: 3
      max-idle: 3
      min-idle: 3

张辰's avatar
张辰 committed
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68


spring.kafka:
  bootstrap-servers: 118.190.63.109:9092
  consumer:
    group-id: tp_group_new_community
    auto-offset-reset: latest
    fetch-min-size: 64
    fetch-max-wait: 500
    max-poll-records: 500
    key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
    value-deserializer: org.apache.kafka.common.serialization.StringDeserializer
  producer:
    acks: 1
    batch-size: 10000
    key-serializer: org.apache.kafka.common.serialization.StringSerializer
    value-serializer: org.apache.kafka.common.serialization.StringSerializer


张辰's avatar
张辰 committed
69 70 71
spring:
  sleuth:
    enabled: false
张辰's avatar
张辰 committed
72
    sampler.probability: 1.0
张辰's avatar
张辰 committed
73 74
  zipkin:
    enabled: false
张辰's avatar
张辰 committed
75 76
    base-url: http://tracing-analysis-dc-sh.aliyuncs.com/adapt_f582gdhpd0@141b989b3abcccb_f582gdhpd0@53df7ad2afe8301_prod
    sender.type: web
张辰's avatar
张辰 committed
77

张辰's avatar
张辰 committed
78 79 80 81 82
aliyun:
  oss:
    endpoint: http://oss-cn-shanghai.aliyuncs.com
    accessId: LTAIAKEzVydP0Q9P
    accessSK: 59V9ke9txaIFzWxHFKTb1eoOOpmKpJ
刘基明's avatar
刘基明 committed
83
    bucketName: tamp-sit
张辰's avatar
张辰 committed
84 85 86 87 88

es:
  host: 42.194.224.208
  port: 9200
  userName: 1
刘基明's avatar
刘基明 committed
89
  userPasswd: 2
90
  index: new-community
刘基明's avatar
刘基明 committed
91 92 93 94 95

tencent:
  cloud:
    secretId: AKIDTjjV2IhK4ZKBm8z5g14vPedNSJuFnTIq
    secretKey: PaVBZfeQwDVXKr7TZOzM6c9VZNwGJGyA
96 97 98 99 100 101 102 103
    region: ap-shanghai

recommend:
  ratio: #主题推荐比例(热门、最新、机器学习)
    hot: 3
    new: 2
    python: 1
  python:
刘基明's avatar
刘基明 committed
104
    enable: false
刘基明's avatar
刘基明 committed
105 106 107 108
    url: http://172.168.0.164:9000/api/get_recommend?user_id=2431614397151511

rank:
  theme:
刘基明's avatar
刘基明 committed
109 110 111 112 113 114 115 116
    viewRate: 0.1
    forwardRate: 3
    commentRate: 2
    likeRaten: 1
    collectRate: 3
    userWeightRate: 0.9
    initialWeight: 1.0
    timeRate: 0.2
刘基明's avatar
刘基明 committed
117
  topic:
刘基明's avatar
刘基明 committed
118 119 120 121
    viewRate: 2
    discussRate: 3
    themeRate: 3
    timeRate: 1