application.yml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. # 项目相关配置
  2. xchat:
  3. # 名称
  4. name: 卿卿
  5. # 版本
  6. version: 1.0.0
  7. # 版权年份
  8. copyrightYear: 2019
  9. # 实例演示开关
  10. demoEnabled: false
  11. # 文件路径
  12. profile: /srv/server/chat-server/admin/file/
  13. # 获取ip地址开关
  14. addressEnabled: true
  15. # 开发环境配置
  16. server:
  17. # 服务器的HTTP端口,默认为80
  18. port: 8888
  19. servlet:
  20. # 应用的访问路径
  21. context-path: /
  22. tomcat:
  23. # tomcat的URI编码
  24. uri-encoding: UTF-8
  25. # tomcat最大线程数,默认为200
  26. max-threads: 800
  27. # Tomcat启动初始化的线程数,默认值25
  28. min-spare-threads: 30
  29. # 用户配置
  30. user:
  31. password:
  32. # 密码错误{maxRetryCount}次锁定10分钟
  33. maxRetryCount: 5
  34. # Spring配置
  35. spring:
  36. # 模板引擎
  37. thymeleaf:
  38. mode: HTML
  39. encoding: utf-8
  40. # 禁用缓存
  41. cache: false
  42. # 资源信息
  43. messages:
  44. # 国际化资源文件路径
  45. basename: static/i18n/messages
  46. jackson:
  47. time-zone: GMT+8
  48. date-format: yyyy-MM-dd HH:mm:ss
  49. profiles:
  50. active: dev
  51. # 文件上传
  52. servlet:
  53. multipart:
  54. # 单个文件大小
  55. max-file-size: 100MB
  56. # 设置总上传的文件大小
  57. max-request-size: 200MB
  58. # 服务模块
  59. devtools:
  60. restart:
  61. # 热部署开关
  62. enabled: true
  63. # MyBatis
  64. mybatis:
  65. # 搜索指定包别名
  66. typeAliasesPackage: com.juxiao.xchat.module
  67. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  68. mapperLocations: classpath:mybatis/**/*Mapper.xml
  69. # 加载全局的配置文件
  70. configLocation: classpath:mybatis/mybatis-config.xml
  71. # PageHelper分页插件
  72. pagehelper:
  73. helperDialect: mysql
  74. reasonable: true
  75. supportMethodsArguments: true
  76. params: count=countSql
  77. # Shiro
  78. shiro:
  79. user:
  80. # 登录地址
  81. loginUrl: /login
  82. # 权限认证失败地址
  83. unauthorizedUrl: /unauth
  84. # 首页地址
  85. indexUrl: /index
  86. # 验证码开关
  87. captchaEnabled: true
  88. # 验证码类型 math 数组计算 char 字符
  89. captchaType: char
  90. cookie:
  91. # 设置Cookie的域名 默认空,即当前访问的域名
  92. domain:
  93. # 设置cookie的有效访问路径
  94. path: /
  95. # 设置HttpOnly属性
  96. httpOnly: true
  97. # 设置Cookie的过期时间,天为单位
  98. maxAge: 30
  99. session:
  100. # Session超时时间(默认30分钟)
  101. expireTime: 30
  102. # 同步session到数据库的周期(默认1分钟)
  103. dbSyncPeriod: 1
  104. # 相隔多久检查一次session的有效性,默认就是10分钟
  105. validationInterval: 10
  106. # 同一个用户最大会话数,比如2的意思是同一个账号允许最多同时两个人登录(默认-1不限制)
  107. maxSession: 1
  108. # 踢出之前登录的/之后登录的用户,默认踢出之前登录的用户
  109. kickoutAfter: false
  110. # 防止XSS攻击
  111. xss:
  112. # 过滤开关
  113. enabled: true
  114. # 排除链接(多个用逗号分隔)
  115. excludes: /system/notice/*
  116. # 匹配链接
  117. urlPatterns: /system/*,/monitor/*,/tool/*
  118. # 代码生成
  119. gen:
  120. # 作者
  121. author: chris
  122. # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
  123. packageName: com.juxiao.xchat.module.xbd.domain
  124. # 自动去除表前缀,默认是true
  125. autoRemovePre: true
  126. # 表前缀(类名不会包含表前缀)
  127. tablePrefix:
  128. external:
  129. caih:
  130. clientId: b02lm9
  131. password: 12345678
  132. smsSendUrl: http://api.csms.caih.com/sms-partner/access/b02lm9/sendsms
  133. smsTemplate: 【qinqin】您的验证码:%s,2分钟内有效,请尽快完成验证。
  134. deviceIdDayLimit: 20
  135. uidDayLimit: 20
  136. netease:
  137. appKey: 70fe40606c96f6aa659e2bd06a54a6bb
  138. appSecret: 769530cb120d
  139. smsTemplateid: 9574417
  140. alarmSmsTemplateid: 9514563
  141. qiniu:
  142. accessUrl: https://pic.keliangbox.com/
  143. accessKey: osHLcU3V4dGwuCN3Q0I1GPxRuthP0gsK0dU7rBjx
  144. secretKey: L5kqMQHN40970eorqLjwypJYBf1QEYXT5I8SFz01
  145. bucket: hncx
  146. dingtalk:
  147. operationChatbot: https://oapi.dingtalk.com/robot/send?access_token=82fc500201f4d7da5495c4d5ae40d7880b625c04edf532388117239337fb7dad
  148. # 产品开发群
  149. developChatbot: https://oapi.dingtalk.com/robot/send?access_token=cd508442df5317b257c2ab232e602e0d60d10c8629a2588a4763efa2387583cb
  150. # 产品经理
  151. pm:
  152. - 13710159312
  153. programmer:
  154. - 15002037560
  155. tester:
  156. - 13760699443
  157. third:
  158. dingtalk:
  159. clientId: dingoaxnxsvmkddopbltis
  160. clientSecret: 3dDpZrl-cJxSBO9e23TS0UPt7bxJyGy0QWTEU7Jvu2zc_W4GLEWHO5k8RFdmj4TN
  161. redirectUri: http://console.hnyueqiang.com/auth/dingTalk/callback
  162. #声网
  163. agora:
  164. appId: 9cd492e46006470781b2ccf38368fd9e
  165. appCertificate: ddb17767ad8b4f66b0813984171f6330
  166. #数美
  167. sm:
  168. accessKey: BsQ5SA68Z6hbuLk1eaeh
  169. openAudioStream: http://audio-api.fengkongcloud.com/v2/saas/anti_fraud/audiostream
  170. queryAudioStream: http://audio-api.fengkongcloud.com/v2/saas/anti_fraud/query_audiostream
  171. closeAudioStream: http://audio-api.fengkongcloud.com/v2/saas/anti_fraud/finish_audiostream
  172. callback: http://console.hnyueqiang.com/fk/cloud/smAudioCallBack