application.properties 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. #info.description=Fiberhome Cloud Platform
  2. #info.url=https://www.fcae.com
  3. banner.charset=UTF-8
  4. #Banner file location.
  5. banner.location=classpath:smartms.txt
  6. server.port=${app.port:8080}
  7. spring.jmx.enabled=false
  8. #ribbon.IsSecure=true
  9. #retry
  10. #该参数用来开启重试机制
  11. spring.cloud.loadbalancer.retry.enabled=true
  12. ribbon.okhttp.enabled=true
  13. ribbon.httpclient.enabled=false
  14. feign.okhttp.enabled=true
  15. feign.httpclient.enabled=false
  16. #开启熔断
  17. hystrix.threadpool.default.coreSize=50
  18. #feign.hystrix.enabled=true
  19. feign.compression.request.enabled=true
  20. feign.compression.response.enabled=true
  21. #spring.aop.proxy-target-class=true
  22. fcae-domain=fcae.com
  23. # 是否开启安全校验
  24. fae.ms.server.security.enabled=true
  25. #服务注册的命名空间
  26. fae.ms.namespace=BMS
  27. #mq
  28. spring.rabbitmq.addresses=111.47.11.70:5672
  29. spring.rabbitmq.username=whlg_mq
  30. spring.rabbitmq.password=fhyq_whlg@mq3692
  31. #消息发送到交换机确认机制,是否确认回调
  32. spring.rabbitmq.publisher-confirms=true
  33. spring.rabbitmq.listener.simple.acknowledge-mode=manual
  34. #consul
  35. spring.cloud.consul.host=111.47.11.70
  36. spring.cloud.consul.port=8500
  37. spring.cloud.consul.discovery.prefer-ip-address=true
  38. spring.cloud.consul.discovery.instance-id=${spring.application.name}:${spring.cloud.client.ipAddress}:${server.port}
  39. spring.cloud.consul.discovery.instanceGroup=bms
  40. spring.cloud.consul.discovery.tags=v-1.0.0,namespace=fae
  41. spring.cloud.consul.discovery.acl-token=86ad95d5-c273-4213-a9c0-6e454e3778f0
  42. spring.cloud.consul.discovery.registerHealthCheck=true
  43. spring.cloud.consul.discovery.healthCheckTimeout=10s
  44. spring.cloud.consul.discovery.healthCheckCriticalTimeout=30m
  45. # DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
  46. #当创建连接池时,没法创建指定最小连接数量是否抛异常
  47. spring.datasource.hikari.initialization-fail-fast=true
  48. #数据库连接错误时是否继续启动应用
  49. spring.datasource.continue-on-error=false
  50. #指定初始化数据源,是否用data.sql来初始化,默认: true
  51. spring.datasource.initialize=false
  52. #是否开启jmx监控
  53. spring.datasource.jmx-enabled=false
  54. #spring.datasource.jndi-name=
  55. #连接池最大连接数
  56. spring.datasource.hikari.maximumPoolSize=100
  57. #连接池最小连接数 根据实际情况调整 期望是完全覆盖常用场景并略微富余 设置过大占用资源和连接 过小会频繁的新建或销毁连接
  58. spring.datasource.hikari.minimumIdle=10
  59. #是否允许中断
  60. spring.datasource.hikari.allow-pool-suspension=false
  61. spring.datasource.hikari.connection-test-query=select 1
  62. ##驱动类
  63. spring.datasource.hikari.driver-class-name=com.mysql.jdbc.Driver
  64. #指定连接多久没被使用时,被标记为空闲
  65. spring.datasource.hikari.idle-timeout=600000
  66. #连接最大生命周期
  67. spring.datasource.hikari.max-lifetime=1800000
  68. #连接超时
  69. spring.datasource.hikari.connection-timeout=30000
  70. #登陆超时时间
  71. spring.datasource.hikari.login-timeout=5000
  72. #校验的超时时间
  73. spring.datasource.hikari.validation-timeout=5000
  74. ##url
  75. #spring.datasource.hikari.jdbc-url=jdbc:mysql://10.128.151.4:3306/youqu_test?useUnicode=true&characterEncoding=UTF8&allowMultiQueries=true&jdbcCompliantTruncation=false&zeroDateTimeBehavior=convertToNull
  76. spring.datasource.hikari.jdbc-url=jdbc:mysql://111.47.11.70:3306/youqu_whlg?useUnicode=true&characterEncoding=UTF8&allowMultiQueries=true&jdbcCompliantTruncation=false&zeroDateTimeBehavior=convertToNull
  77. #用户名
  78. spring.datasource.hikari.username=root
  79. #密码
  80. spring.datasource.hikari.password=4wdc79GQEV
  81. spring.datasource.type=com.zaxxer.hikari.HikariDataSource
  82. #名称
  83. spring.datasource.hikari.pool-name=${spring.application.name}_dataSourcePool
  84. #spring.datasource.url=jdbc:mysql://10.128.151.4:3306/6_test?useUnicode=true&characterEncoding=UTF8&allowMultiQueries=true
  85. #spring.datasource.username=6_test
  86. #spring.datasource.password=6_test@123
  87. #spring.datasource.driver-class-name=com.mysql.jdbc.Driver
  88. ########################################################
  89. ### REDIS (RedisProperties)
  90. ########################################################
  91. # Maximum number of redirects to follow when executing commands across the cluster.
  92. #spring.redis.cluster.max-redirects=
  93. # Comma-separated list of "host:port" pairs to bootstrap from.
  94. #spring.redis.cluster.nodes=
  95. # Database index used by the connection factory.
  96. #spring.redis.database=14
  97. # Redis server host.
  98. #spring.redis.host=10.128.151.107
  99. spring.redis.cluster.nodes=111.47.11.70:6180,111.47.11.70:6181,111.47.11.70:6179
  100. # Login password of the redis server.
  101. spring.redis.password=fiberhome_cict
  102. # Max number of connections that can be allocated by the pool at a given time. Use a negative value for no limit.
  103. spring.redis.pool.max-active=500
  104. # Max number of "idle" connections in the pool. Use a negative value to indicate an unlimited number of idle connections.
  105. spring.redis.pool.max-idle=20
  106. # Maximum amount of time (in milliseconds) a connection allocation should block before throwing an exception when the pool is exhausted. Use a negative value to block indefinitely.
  107. spring.redis.pool.max-wait=-1
  108. # Target for the minimum number of idle connections to maintain in the pool. This setting only has an effect if it is positive.
  109. spring.redis.pool.min-idle=0
  110. # Redis server port.
  111. #spring.redis.port=6379
  112. # Name of Redis server.
  113. #spring.redis.sentinel.master=
  114. # Comma-separated list of host:port pairs.
  115. #spring.redis.sentinel.nodes=
  116. # Connection timeout in milliseconds.
  117. spring.redis.timeout=10000
  118. #WEB
  119. App.Version=2.1.0-dev
  120. # Redis下的cache,session顶级命名空间用App.Name配置
  121. App.Name=SmartMs
  122. App.HomePage=web/smartas/demo/Dashboard.html
  123. App.Theme=light
  124. # app.cache=[none,redis]
  125. App.Cache=${app.cache:redis}
  126. spring.mvc.resource.enabled=false
  127. spring.resources.add-mappings=false
  128. spring.freemarker.template-loader-path=classpath:/ftl/
  129. spring.freemarker.cache=true
  130. fae.ms.session.cookieName=JSESSIONID
  131. fae.ms.session.useSecureCookie=false
  132. fae.ms.session.useHttpOnlyCookie=true
  133. fae.ms.session.cookiePath=/
  134. #session.domainName=smartas.com
  135. #针对IP地址访问的情况,可以不设置。
  136. fae.ms.session.domainName=
  137. fae.ms.session.cookieMaxAge=-1
  138. #配置domain模式匹配,属于高级控制,并且和session.domainName不可同时设置值
  139. fae.ms.session.domainNamePattern=
  140. #有效期(秒)
  141. fae.ms.session.maxInactiveIntervalInSeconds=3600
  142. fae.resource.css=\
  143. web/common/fontawesome/css/font-awesome.min,\
  144. web/common/scrollbar/jquery.mCustomScrollbar.min,\
  145. web/ui/antd2x/antd.min,\
  146. web/common/plupload/plupload,\
  147. web/ui/css/smart,\
  148. web/ui/css/main,\
  149. web/ui/theme/smart-icons,\
  150. web/theme/index,\
  151. web/theme/theme
  152. fae.resource.commonJs=\
  153. web/common/jquery/jquery-1.11.3.min,\
  154. web/common/util-all.min,\
  155. web/config/log4js.config,\
  156. web/common/jquery.ba-hashchange.min,\
  157. web/common/react/react-all.min,\
  158. web/common/react-draggable.min,\
  159. web/common/plupload/plupload.full.min,\
  160. web/common/scrollbar/jquery.mCustomScrollbar.concat.min
  161. fae.resource.coreJs=web/core/main.min
  162. fae.resource.uiJs=web/ui/antd2x/antd.min,web/ui/SmartUI,web/ui/wegits/main.min,web/theme/index
  163. ##weedfs服务器路径
  164. masterUrl=http://10.110.200.62:9333
  165. #配置springboot上传文件大小
  166. #spring.servlet.multipart.enabled=true
  167. #spring.servlet.multipart.max-file-size=30Mb
  168. #spring.servlet.multipart.max-request-size=30Mb
  169. spring.http.multipart.enabled=true
  170. spring.http.multipart.maxFileSize=30MB
  171. spring.http.multipart.maxRequestSize=30MB
  172. #sleuth
  173. spring.sleuth.enabled=true
  174. spring.sleuth.log.slf4j.enabled=false
  175. #spring.zipkin.base-url=http://10.110.200.29:8911/
  176. spring.sleuth.sampler.percentage=1.0
  177. spring.sleuth.scheduled.skipPattern=org.springframework.*
  178. #关闭敏感信息
  179. endpoints.health.sensitive=false
  180. #关闭权限校验
  181. management.security.enabled=false
  182. #去掉重复的metrics
  183. spring.metrics.servo.enabled=false
  184. #工作流
  185. workflow.mail.server.host=smtp.fiberhome.com
  186. workflow.mail.server.port=25
  187. workflow.mail.send.user=
  188. workflow.mail.send.password=
  189. workflow.mail.send.protocol=smtp
  190. workflow.mail.auth=true
  191. workflow.mail.timeout=25000
  192. #个推 测试版
  193. #ios
  194. GETUI_AppStore_AppID = 8S69qrlfgq6iBvYeNoopb8
  195. GETUI_AppStore_AppKey = UDQdh7Grsn8A9U8CePle73
  196. GETUI_AppStore_MASTERSECRET = oBXZ7SRLYPA1wr5FAo4Wu1
  197. #安卓
  198. GETUI_AppID = gtMr3X9FBV9VWSSJfJXIs8
  199. GETUI_AppKey = uUMfaIie0y9HGxzNlM9GP2
  200. GETUI_MASTERSECRET = uMxfT2lxuz5NCt05B5qcb2
  201. #个推 武船版
  202. #ios
  203. #GETUI_AppStore_AppID = epQkfnqd7VA01C2ZfMa366
  204. #GETUI_AppStore_AppKey = cUZ1lASR5O9HmLMWlOGdN7
  205. #GETUI_AppStore_MASTERSECRET = W0wNr8Qi3M62mT4N6wcVO3
  206. #安卓
  207. #GETUI_AppID = epQkfnqd7VA01C2ZfMa366
  208. #GETUI_AppKey = cUZ1lASR5O9HmLMWlOGdN7
  209. #GETUI_MASTERSECRET = W0wNr8Qi3M62mT4N6wcVO3
  210. #推送地址
  211. PUBLISH_PRE = http://111.47.11.70:10443/services
  212. #环信 测试版
  213. #org_name = 1123181126181414
  214. #app_name = youqu-test
  215. #client_id = YXA6P2m8MPFNEeiUAXk5epTZeg
  216. #client_secret = YXA603xYVprQGe4f_XArEt-FmZI8sAM
  217. #环信 正式版
  218. #org_name = 1123181126181414
  219. #app_name = youqu
  220. #client_id = YXA62URxcPFMEeieqeGf0ChCVg
  221. #client_secret = YXA6ED1nRBahrHnEpxFiTNoZ8P5D7PI
  222. #楚天云图片服务器
  223. #S3_ENDPOINT = ctyoss.chutianyun.gov.cn:8060
  224. #S3_BUCKETNAME = yq_fiberhome_test
  225. #S3_AKEY = DXTFPBAO5FMM95JJJZGY
  226. #S3_SKEY = ZOWDWKKbDVdMaJLZE83YVGxwcC10Vvufq0XBQ7RQ
  227. #杂志文章静态文件相关配置
  228. ICON_PREFIX = http://ctyoss.chutianyun.gov.cn:8060/yq_fiberhome_test/
  229. ATTACH_UPLOAD_PATH = /usr/local/tomcat/youqu_server/webapps/ROOT/
  230. #阿里云图片服务器 正式版
  231. #OSS_KEY = LTAIOotI1FpxgnXZ
  232. #OSS_SECRET = 1EBqjE4MOTGnMH434LE85sFle5Nz9N
  233. #OSS_ENDPOINT = http://oss-cn-hangzhou.aliyuncs.com
  234. #OSS_BUCKETNAME = yq-fiberhome-prod
  235. #党费同步地址
  236. #DATA_SYNC = http://10.110.200.190:8080/youqu_dataSync/data/service.do?text=%s
  237. #党员活跃率定时插入时间
  238. INIT_ACTIVERATE_SCHEDULE_TIME=0 0/40 * * * ?
  239. #掌上党校定时插入时间
  240. INIT_PARTYCLASS_SCHEDULE_TIME=0 20/8 * * * ?
  241. #测试配置
  242. cron = 1 2 3
  243. #管理后台登录地址
  244. server.loginURL=http://111.47.11.70:10443/services/web/security/login
  245. server.userName=17700000000
  246. server.password=123456
  247. #mail相关配置
  248. spring.mail.host=smtp.fiberhome.com
  249. spring.mail.protocol=smtps
  250. spring.mail.test-connection=false
  251. spring.mail.port=465
  252. #账号密码
  253. spring.mail.username=youqu@fiberhome.com
  254. spring.mail.password=0430asdf
  255. spring.mail.default-encoding=UTF-8
  256. #ssl登录相关配置
  257. spring.mail.properties.mail.transport.protocol=smtps
  258. spring.mail.properties.mail.smtp.auth=true
  259. spring.mail.properties.mail.smtp.starttls.enable=true
  260. spring.mail.properties.mail.smtp.starttls.required=true
  261. spring.mail.properties.mail.smtp.ssl.enabled=true
  262. spring.mail.properties.mail.smtp.ssl.socketFactory.port=465
  263. spring.mail.properties.mail.smtp.ssl.socketFactory.fallback=false
  264. spring.mail.properties.mail.smtp.ssl.socketFactory.class=javax.net.ssl.SSLSocketFactory
  265. #关闭邮件健康检查 因为烽火邮箱客户端
  266. management.health.mail.enabled=false
  267. dtx.enabled=true
  268. tx-lcn.client.manager-address=111.47.11.70:8070
  269. tx-lcn.logger.enabled=false
  270. tx-lcn.logger.driver-class-name=com.mysql.jdbc.Driver
  271. tx-lcn.logger.jdbc-url=jdbc:mysql://111.47.11.70:3306/tx_manager_whlg?useUnicode=true&characterEncoding=UTF8&allowMultiQueries=true&jdbcCompliantTruncation=false&zeroDateTimeBehavior=convertToNull
  272. tx-lcn.logger.username=root
  273. tx-lcn.logger.password=4wdc79GQEV
  274. tx-lcn.springcloud.loadbalance.enabled=true
  275. #tx-lcn自身的重试机制因为版本冲突并不生效 这是重写的开关配置
  276. tx-lcn.ribbon.loadbalancer.dtx.fiberhome.enabled=true
  277. tx-lcn.client.resource-order=2
  278. # 压测最新最热接口 (测试)
  279. server.tomcat.max-connections=10000
  280. server.tomcat.max-threads=500
  281. fiberhome.elasticsearch.username=elastic
  282. fiberhome.elasticsearch.password=123456
  283. fiberhome.elasticsearch.nodes[0].hostname=10.128.151.4
  284. fiberhome.elasticsearch.nodes[0].port=9200
  285. fiberhome.elasticsearch.nodes[0].protocol=http