application-prod.yml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. spring:
  2. data:
  3. redis:
  4. host: localhost
  5. port: 6379
  6. datasource:
  7. type: com.alibaba.druid.pool.DruidDataSource
  8. druid:
  9. # 数据库链接 [主数据源]
  10. main:
  11. url: jdbc:mysql://192.168.0.190:3306/tourism?characterEncoding=utf8&useSSL=true&serverTimezone=Asia/Shanghai
  12. username: root
  13. password: Lm10921234
  14. # 默认生成的操作日志数据源配置。
  15. operation-log:
  16. url: jdbc:mysql://192.168.0.190:3306/tourism?characterEncoding=utf8&useSSL=true&serverTimezone=Asia/Shanghai
  17. username: root
  18. password: Lm10921234
  19. # 默认生成的全局编码字典数据源配置。
  20. global-dict:
  21. url: jdbc:mysql://192.168.0.190:3306/tourism?characterEncoding=utf8&useSSL=true&serverTimezone=Asia/Shanghai
  22. username: root
  23. password: Lm10921234
  24. # 默认生成的工作流及在线表单数据源配置。
  25. common-flow-online:
  26. url: jdbc:mysql://192.168.0.190:3306/tourism?characterEncoding=utf8&useSSL=true&serverTimezone=Asia/Shanghai
  27. username: root
  28. password: Lm10921234
  29. # 默认生成的统计打印模块的数据源配置。
  30. common-report:
  31. url: jdbc:mysql://192.168.0.190:3306/tourism?characterEncoding=utf8&useSSL=true&serverTimezone=Asia/Shanghai
  32. username: root
  33. password: Lm10921234
  34. driverClassName: com.mysql.cj.jdbc.Driver
  35. name: application-webadmin
  36. initialSize: 10
  37. minIdle: 10
  38. maxActive: 50
  39. maxWait: 60000
  40. timeBetweenEvictionRunsMillis: 60000
  41. minEvictableIdleTimeMillis: 300000
  42. poolPreparedStatements: true
  43. maxPoolPreparedStatementPerConnectionSize: 20
  44. maxOpenPreparedStatements: 20
  45. validationQuery: SELECT 'x'
  46. testWhileIdle: true
  47. testOnBorrow: false
  48. testOnReturn: false
  49. connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
  50. filters: stat,wall
  51. useGlobalDataSourceStat: true
  52. web-stat-filter:
  53. enabled: true
  54. url-pattern: /*
  55. exclusions: "*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*,/actuator/*"
  56. stat-view-servlet:
  57. enabled: true
  58. urlPattern: /druid/*
  59. resetEnable: true
  60. application:
  61. # 初始化密码。
  62. defaultUserPassword: 123456
  63. # 缺省的文件上传根目录。
  64. uploadFileBaseDir: ./zz-resource/upload-files/app
  65. # 跨域的IP(http://192.168.10.10:8086)白名单列表,多个IP之间逗号分隔(* 表示全部信任,空白表示禁用跨域信任)。
  66. credentialIpList: "*"
  67. # Session的用户和数据权限在Redis中的过期时间(秒)。一定要和sa-token.timeout
  68. sessionExpiredSeconds: 86400
  69. # 是否排他登录。
  70. excludeLogin: false
  71. hostIpPort: https://v.xiaoyaotravel.com
  72. # 这里仅仅是一个第三方配置的示例,如果没有接入斯三方系统,
  73. # 这里的配置项也不会影响到系统的行为,如果觉得多余,也可以手动删除。
  74. third-party:
  75. # 第三方系统接入的用户鉴权配置。
  76. auth:
  77. - appCode: orange-forms-default
  78. # 访问第三方系统接口的URL前缀,橙单会根据功能添加接口路径的其余部分,
  79. # 比如获取用户Token的接口 http://localhost:8083/orangePluginTest/getTokenData
  80. baseUrl: http://localhost:8083/orangePlugin
  81. # 第三方应用鉴权的HTTP请求令牌头的KEY。
  82. tokenHeaderKey: Authorization
  83. # 第三方返回的用户Token数据的缓存过期时长,单位秒。
  84. # 如果为0,则不缓存,每次涉及第三方的请求,都会发出http请求,交由第三方验证,这样对系统性能会有影响。
  85. tokenExpiredSeconds: 60
  86. # 第三方返回的权限数据的缓存过期时长,单位秒。
  87. permExpiredSeconds: 86400
  88. # 这里仅仅是一个第三方配置的示例,如果没有接入斯三方系统,
  89. # 这里的配置项也不会影响到系统的行为,如果觉得多余,也可以手动删除。
  90. common-ext:
  91. urlPrefix: /admin/commonext
  92. # 这里可以配置多个第三方应用,这里的应用数量,通常会和上面third-party.auth的配置数量一致。
  93. apps:
  94. # 应用唯一编码,尽量不要使用中文。
  95. - appCode: orange-forms-default
  96. # 业务组件的数据源配置。
  97. bizWidgetDatasources:
  98. # 组件的类型,多个类型之间可以逗号分隔。
  99. - types: upms_user,upms_dept
  100. # 组件获取列表数据的接口地址。
  101. listUrl: http://localhost:8083/orangePlugin/listBizWidgetData
  102. # 组件获取详情数据的接口地址。
  103. viewUrl: http://localhost:8083/orangePlugin/viewBizWidgetData
  104. common-sequence:
  105. # Snowflake 分布式Id生成算法所需的WorkNode参数值。
  106. snowflakeWorkNode: 1
  107. # 存储session数据的Redis,所有服务均需要,因此放到公共配置中。
  108. # 根据实际情况,该Redis也可以用于存储其他数据。
  109. common-redis:
  110. # redisson的配置。每个服务可以自己的配置文件中覆盖此选项。
  111. redisson:
  112. # 如果该值为false,系统将不会创建RedissionClient的bean。
  113. enabled: true
  114. # mode的可用值为,single/cluster/sentinel/master-slave
  115. mode: single
  116. # single: 单机模式
  117. # address: redis://localhost:6379
  118. # cluster: 集群模式
  119. # 每个节点逗号分隔,同时每个节点前必须以redis://开头。
  120. # address: redis://localhost:6379,redis://localhost:6378,...
  121. # sentinel:
  122. # 每个节点逗号分隔,同时每个节点前必须以redis://开头。
  123. # address: redis://localhost:6379,redis://localhost:6378,...
  124. # master-slave:
  125. # 每个节点逗号分隔,第一个为主节点,其余为从节点。同时每个节点前必须以redis://开头。
  126. # address: redis://localhost:6379,redis://localhost:6378,...
  127. address: redis://localhost:6379
  128. # 链接超时,单位毫秒。
  129. timeout: 6000
  130. # 单位毫秒。分布式锁的超时检测时长。
  131. # 如果一次锁内操作超该毫秒数,或在释放锁之前异常退出,Redis会在该时长之后主动删除该锁使用的key。
  132. lockWatchdogTimeout: 60000
  133. # redis 密码,空可以不填。
  134. password:
  135. pool:
  136. # 连接池数量。
  137. poolSize: 20
  138. # 连接池中最小空闲数量。
  139. minIdle: 5
  140. common-report:
  141. # 注意不要以反斜杠(/)结尾。
  142. urlPrefix: /admin/report
  143. # 统计打印表单业务数据上传资源路径
  144. uploadFileBaseDir: ./zz-resource/upload-files/report
  145. # 如果为false,报表模块的所有Controller中的接口将不能使用。
  146. operationEnabled: true
  147. # 该配置项仅当打印模板中,打印图片字段时,才会需要。
  148. # 这里的url配置只是一个示例,并不能保证开箱即用,代码示例和说明可参考common-report模块
  149. # example包内的ReportExampleController中的代码和详细说明。
  150. imageDownloadUrl: "http://localhost:8082/admin/report/example/downloadDirectly"
  151. # 该配置用于报表部分的数据权限过滤功能。
  152. # 当前数据权限需要获取指定部门Ids的所有下级子部门Ids的时候,会调用该接口。
  153. dataPermAllChildrenDeptIdUrl: "http://localhost:8082/admin/upms/sysDept/listAllChildDeptIdByParentIds"
  154. # 业务表和统计打印内置表是否跨库。
  155. enabledMultiDatabaseWrite: true
  156. # 当前服务是否为可视化后台服务。
  157. isVisualization: false
  158. # 下面的url列表,请保持反斜杠(/)结尾。
  159. viewUrlList:
  160. - ${common-report.urlPrefix}/reportOperation/listData/
  161. huaweicloud:
  162. obs:
  163. enabled: true
  164. expireSeconds: 1000
  165. # 下面几项均需在申请华为云OBS后,根据自己的实际情况进行配置。
  166. endpoint: obs.cn-north-4.myhuaweicloud.com
  167. accessKey: C9WI47G4DXXN2EMIL1OO
  168. secretKey: tfrZ9aw8wjfotUlG6IUCMjtAgzIzErL5qpPPt9AO
  169. bucketName: xiaoyaotravel
  170. sa-token:
  171. # token 名称(同时也是 cookie 名称)
  172. token-name: Authorization
  173. # token 有效期(单位:秒) 默认30天,-1 代表永久有效
  174. timeout: ${application.sessionExpiredSeconds}
  175. # token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结
  176. active-timeout: -1
  177. # 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
  178. is-concurrent: true
  179. # 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token)
  180. is-share: false
  181. # token 风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik)
  182. token-style: uuid
  183. # 是否输出操作日志
  184. is-log: true
  185. # 配置 Sa-Token 单独使用的 Redis 连接
  186. # 修改这里Sa-Token的Redis配置,同时也要修改当前配置文件顶部spring.data.redis的相关配置。
  187. alone-redis:
  188. # Redis数据库索引(默认为0)
  189. database: 0
  190. # Redis服务器地址
  191. host: localhost
  192. # Redis服务器连接端口
  193. port: 6379
  194. # Redis服务器连接密码(默认为空)
  195. password:
  196. # 连接超时时间
  197. timeout: 10s
  198. is-read-header: true
  199. is-read-cookie: false
  200. sms:
  201. config-type: yaml
  202. blends:
  203. huawei:
  204. #华为短信appKey
  205. accessKeyId: 7aUa9993Ggq76rRK0Bb35vZb5NCq
  206. #华为短信appSecret
  207. accessKeySecret: vk2BGZr08FHjkwbBAGjhO4qKwTbM
  208. #短信签名
  209. signature: 华为云短信测试
  210. #通道号
  211. sender: 1069368924410007823
  212. #模板ID 如果使用自定义模板发送方法可不设定
  213. template-id: c4ef7de4affd4f1ca4c71cf7e62a024e
  214. #华为回调地址,如不需要可不设置或为空
  215. statusCallBack:
  216. #华为分配的app请求地址
  217. url: https://smsapi.cn-north-4.myhuaweicloud.com:443
  218. wx:
  219. miniapp: # 小程序配置(必填),参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-starters/wx-java-miniapp-spring-boot-starter/README.md 文档
  220. appid: wx2d0bc678042f0817
  221. secret: c43dc65f88589fe6323d5de70393834d
  222. config-storage:
  223. type: RedisTemplate # 采用 RedisTemplate 操作 Redis,会自动从 Spring 中获取
  224. key-prefix: wa # Redis Key 的前缀
  225. http-client-type: HttpClient # 采用 HttpClient 请求微信公众号平台