|
|
@@ -1,334 +0,0 @@
|
|
|
-# 项目相关配置
|
|
|
-tzy:
|
|
|
- # 名称
|
|
|
- name: app
|
|
|
- # 版本
|
|
|
- version: 4.5.0
|
|
|
- # 版权年份
|
|
|
- copyrightYear: 2019
|
|
|
- # 实例演示开关
|
|
|
- demoEnabled: true
|
|
|
- # 文件路径 示例( Windows配置D:/tzy/uploadPath,Linux配置 /home/tzy/uploadPath)
|
|
|
- profile: /home/tzy/uploadPath
|
|
|
-# profile: F:/tomcat/card/uploadPath
|
|
|
- # 获取ip地址开关
|
|
|
- addressEnabled: false
|
|
|
- #版本
|
|
|
- app-version: dev
|
|
|
- #不可用优惠劵活动类型
|
|
|
- noCouponAct: 619,618,2023_618_主
|
|
|
- #大转盘
|
|
|
- turntableAct: 2022双11主
|
|
|
- #checklist日历标签
|
|
|
- calendarLabel: 组队,购买,一番赏
|
|
|
-
|
|
|
-#Forest
|
|
|
-forest:
|
|
|
- timeout: 30000 # 请求超时时间,单位为毫秒(默认为 3000)
|
|
|
- connect-timeout: 30000 # 连接超时时间,单位为毫秒(默认为 timeout)
|
|
|
- read-timeout: 300000 # 数据读取超时时间,单位为毫秒(默认为 timeout)
|
|
|
- variables:
|
|
|
- appleUrl: https://appleid.apple.com/auth
|
|
|
-# 开发环境配置
|
|
|
-server:
|
|
|
- # 服务器的HTTP端口,默认为80
|
|
|
- port: 8082
|
|
|
- tomcat:
|
|
|
- # tomcat的URI编码
|
|
|
- uri-encoding: UTF-8
|
|
|
- # tomcat最大线程数,默认为200
|
|
|
- max-threads: 800
|
|
|
- # Tomcat启动初始化的线程数,默认值25
|
|
|
- min-spare-threads: 30
|
|
|
- #超时时间
|
|
|
- connection-timeout: 600000
|
|
|
- basedir: c://tmp/logs
|
|
|
- accesslog:
|
|
|
- enabled: true
|
|
|
- buffered: true
|
|
|
- prefix: access_log
|
|
|
- file-date-format: .yyyy-MM-dd
|
|
|
-
|
|
|
-
|
|
|
-# 日志配置
|
|
|
-logging:
|
|
|
- console.enabled: ${CONSOLE_ENABLED:true}
|
|
|
- file.enabled: ${FILE_ENABLED:false}
|
|
|
- level:
|
|
|
- com.tzy: debug
|
|
|
- org.teasoft: debug
|
|
|
- org.springframework: warn
|
|
|
- feign:
|
|
|
- client:
|
|
|
- config:
|
|
|
- default: info
|
|
|
- fluentd:
|
|
|
- enabled: ${FLUENTD_ENABLED:false}
|
|
|
- host: ${FLUENTD_HOST:127.0.0.1}
|
|
|
- port: ${FLUENTD_PORT:24225}
|
|
|
- audit:
|
|
|
- enabled: ${AUDIT_ENABLED:false}
|
|
|
- host: ${AUDIT_HOST:192.168.1.51}
|
|
|
- port: ${AUDIT_PORT:24225}
|
|
|
- bee:
|
|
|
- enabled: true
|
|
|
-
|
|
|
-# 用户配置
|
|
|
-user:
|
|
|
- password:
|
|
|
- # 密码错误{maxRetryCount}次锁定10分钟
|
|
|
- maxRetryCount: 5
|
|
|
-
|
|
|
-# Spring配置
|
|
|
-spring:
|
|
|
- application:
|
|
|
- name: app
|
|
|
- jackson:
|
|
|
- time-zone: GMT+8
|
|
|
- date-format: yyyy-MM-dd HH:mm:ss
|
|
|
- # 文件上传
|
|
|
- servlet:
|
|
|
- multipart:
|
|
|
- # 单个文件大小
|
|
|
- max-file-size: 50MB
|
|
|
- # 设置总上传的文件大小
|
|
|
- max-request-size: 50MB
|
|
|
- # 服务模块
|
|
|
- devtools:
|
|
|
- restart:
|
|
|
- # 热部署开关
|
|
|
- enabled: false
|
|
|
- datasource:
|
|
|
- type: com.alibaba.druid.pool.DruidDataSource
|
|
|
- driverClassName: org.postgresql.Driver
|
|
|
- url: jdbc:postgresql://192.168.50.8:5432/ahx_app
|
|
|
- username: postgres
|
|
|
- password: 123456
|
|
|
- druid:
|
|
|
- # 初始连接数
|
|
|
- initialSize: 5
|
|
|
- # 最小连接池数量
|
|
|
- minIdle: 10
|
|
|
- # 最大连接池数量
|
|
|
- maxActive: 20
|
|
|
- # 配置获取连接等待超时的时间
|
|
|
- maxWait: 60000
|
|
|
- # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
|
|
- timeBetweenEvictionRunsMillis: 60000
|
|
|
- # 配置一个连接在池中最小生存的时间,单位是毫秒
|
|
|
- minEvictableIdleTimeMillis: 300000
|
|
|
- # 配置一个连接在池中最大生存的时间,单位是毫秒
|
|
|
- maxEvictableIdleTimeMillis: 900000
|
|
|
- # 配置检测连接是否有效
|
|
|
- validationQuery: SELECT 1
|
|
|
- # 检测连接超时时间(ms)
|
|
|
- validationQueryTimeout: 200
|
|
|
- testWhileIdle: true
|
|
|
- testOnBorrow: false
|
|
|
- testOnReturn: false
|
|
|
- removeAbandoned: false
|
|
|
- logAbandoned: false
|
|
|
- webStatFilter:
|
|
|
- enabled: false
|
|
|
- statViewServlet:
|
|
|
- enabled: true
|
|
|
- # 设置白名单,不填则允许所有访问
|
|
|
- allow:
|
|
|
- url-pattern: /druid/*
|
|
|
- # 控制台管理用户名和密码
|
|
|
- login-username:
|
|
|
- login-password:
|
|
|
- filter:
|
|
|
- stat:
|
|
|
- enabled: true
|
|
|
- # 慢SQL记录
|
|
|
- log-slow-sql: true
|
|
|
- slow-sql-millis: 1000
|
|
|
- merge-sql: true
|
|
|
- wall:
|
|
|
- config:
|
|
|
- multi-statement-allow: true
|
|
|
- redis:
|
|
|
- database: 1
|
|
|
- host: 192.168.50.8
|
|
|
- #host: hobbystock.cn
|
|
|
- port: 6379
|
|
|
- password: Pass2010 # 密码(默认为空)
|
|
|
- timeout: 60000 # 连接超时时长(毫秒)
|
|
|
- pool:
|
|
|
- max-active: 100 # 连接池最大连接数(使用负值表示没有限制)
|
|
|
- max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
|
|
|
- max-idle: 10 # 连接池中的最大空闲连接
|
|
|
- min-idle: 5 # 连接池中的最小空闲连接
|
|
|
- #mq
|
|
|
- rabbitmq:
|
|
|
- host: 192.168.50.10
|
|
|
- port: 5672
|
|
|
- username: ahx
|
|
|
- password: ahx
|
|
|
- #确认消息已发送到交换机(Exchange)
|
|
|
- publisher-confirms: true
|
|
|
- #确认消息已发送到队列(Queue)
|
|
|
- publisher-returns: true
|
|
|
- template:
|
|
|
- retry:
|
|
|
- enabled: true
|
|
|
- mandatory: true
|
|
|
- listener:
|
|
|
- simple:
|
|
|
- acknowledge-mode: manual
|
|
|
- prefetch: 5
|
|
|
- direct:
|
|
|
- retry:
|
|
|
- enabled: true
|
|
|
- max-attempts: 1
|
|
|
-
|
|
|
- mail:
|
|
|
- host: smtp.exmail.qq.com
|
|
|
- port: 465
|
|
|
- username: yu@shpydzswyxgs.wecom.work
|
|
|
- password: xHbfkdVPcoBiFcvT
|
|
|
- properties:
|
|
|
- mail:
|
|
|
- smtp:
|
|
|
- auth: true
|
|
|
- starttls:
|
|
|
- enable: true
|
|
|
- ssl:
|
|
|
- enable: true
|
|
|
-
|
|
|
-
|
|
|
-# MyBatis
|
|
|
-mybatis:
|
|
|
- # 搜索指定包别名
|
|
|
- typeAliasesPackage: com.tzy.**.domain
|
|
|
- # 配置mapper的扫描,找到所有的mapper.xml映射文件
|
|
|
- mapperLocations: classpath*:mapper/**/*Mapper.xml
|
|
|
- # 加载全局的配置文件
|
|
|
- configLocation: classpath:mybatis/mybatis-config.xml
|
|
|
-
|
|
|
-# PageHelper分页插件
|
|
|
-pagehelper:
|
|
|
- helperDialect: postgresql
|
|
|
- reasonable: false
|
|
|
- supportMethodsArguments: true
|
|
|
- params: count=countSql
|
|
|
-# Swagger配置
|
|
|
-swagger:
|
|
|
- # 是否开启swagger
|
|
|
- enabled: true
|
|
|
-
|
|
|
- #融云配置
|
|
|
-rongcloud:
|
|
|
- appKey: 8luwapkv8wkql
|
|
|
- appSecret: 9z0TSskFnsaek
|
|
|
-
|
|
|
-# 防止XSS攻击
|
|
|
-xss:
|
|
|
- # 过滤开关
|
|
|
- enabled: true
|
|
|
- # 排除链接(多个用逗号分隔)
|
|
|
- excludes: /system/notice/*
|
|
|
- # 匹配链接
|
|
|
- urlPatterns: /system/*,/monitor/*,/tool/*,/base/*,/api/*
|
|
|
-
|
|
|
-wx:
|
|
|
- default_avatar: https://static.public.hobbystock.cn/applet/share/share_logo2.png
|
|
|
- applet:
|
|
|
- lives:
|
|
|
- # 直播认证二维码
|
|
|
- authUrl: https://res.wx.qq.com/op_res/9rSix1dhHfK4rR049JL0PHJ7TpOvkuZ3mE0z7Ou_Etvjf-w1J_jVX0rZqeStLfwh
|
|
|
-#手机验证码
|
|
|
-phone:
|
|
|
- verification_code_uri: https://coresvc-dev/api/verification/code/
|
|
|
- verification_code_uri_hk: http://coresvc-dev/api/verification/code/hk/
|
|
|
-authenticate:
|
|
|
- url: https://coresvc-dev.hobbystocks.cn/api/auth/
|
|
|
-#服务前缀路径
|
|
|
-coreService:
|
|
|
- baseurl: https://coresvc-dev.hobbystocks.cn
|
|
|
- smsUrl: /api/reminder/live/on
|
|
|
- appSmsUrl: /api/appmsg/live/on
|
|
|
- ipUrl: /api/geo/city
|
|
|
-#admin服务url映射
|
|
|
-adminService:
|
|
|
- baseurl: https://coresvc-dev.hobbystocks.cn
|
|
|
- orderNotice: /goods/orderInfo/sendGroupMsg
|
|
|
-
|
|
|
-tenant:
|
|
|
- appid: 1658744039
|
|
|
- secretKey: f58b968b920aa0dbff34fbc0abb7f2a0
|
|
|
-
|
|
|
-#物流
|
|
|
-express:
|
|
|
- sf:
|
|
|
- client_code: LSSWCkEipb #顾客编码
|
|
|
- check_word: 98vtuFMv6FQabirYZ3LD0OhI1fspjc4Z #校验码
|
|
|
- box_url: https://sfapi-sbox.sf-express.com/std/service #沙箱环境的地址
|
|
|
- url: https://sfapi.sf-express.com/std/service #生产环境的地址
|
|
|
- jd:
|
|
|
- appkey: 76f41d301d75499f9a85f9603f535a26
|
|
|
- appsecret: 44d5f413cebb406b867b4f5b3477b0af
|
|
|
- redirect_uri: https://m-dev.hobbystocks.cn/api/home/jdAuth
|
|
|
-
|
|
|
-#elasticsearch 配置
|
|
|
-elasticsearch:
|
|
|
- rest:
|
|
|
- #uris: localhost:9200,localhost:9300 #测试环境es地址
|
|
|
- uris: 192.168.50.10:9202 #测试环境es地址
|
|
|
-
|
|
|
-#直播间webSocket地址
|
|
|
-liveWebSocketUrl: http://poyee-im/chat/handler
|
|
|
-
|
|
|
-
|
|
|
-management:
|
|
|
- endpoints:
|
|
|
- web:
|
|
|
- exposure:
|
|
|
- include: info, health,metrics,prometheus
|
|
|
- exclude: shutdown
|
|
|
- base-path: /actuator
|
|
|
- enabled-by-default: true
|
|
|
- jmx:
|
|
|
- exposure:
|
|
|
- include: info, health,metrics,prometheus
|
|
|
- endpoint:
|
|
|
- health.show-details: never
|
|
|
- #health.show-details: ALWAYS
|
|
|
- metrics:
|
|
|
- enabled: true
|
|
|
- prometheus:
|
|
|
- enabled: true
|
|
|
- metrics:
|
|
|
- export:
|
|
|
- prometheus:
|
|
|
- enabled: true
|
|
|
- step: 1ms
|
|
|
- descriptions: true
|
|
|
- tags:
|
|
|
- # 为指标设置一个Tag,这里设置为应用名,Tag是Prometheus提供的一种能力,从而实现更加灵活的筛选
|
|
|
- application: ${tzy.name}
|
|
|
- health:
|
|
|
- defaults.enabled: false
|
|
|
- db.enabled: true
|
|
|
- diskspace.enabled: true
|
|
|
-feign:
|
|
|
- httpclient:
|
|
|
- enabled: true # 启用 HttpClient 作为 Feign 的 HTTP 客户端
|
|
|
- client:
|
|
|
- config:
|
|
|
- default:
|
|
|
- connectTimeout: 3000 # 连接超时
|
|
|
- readTimeout: 3000 # 读取超时
|
|
|
- maxConnections: 300 # 全局最大连接数
|
|
|
- maxConnectionsPerRoute: 100 # 每个路由的最大连接数
|
|
|
-
|
|
|
-imServer:
|
|
|
- baseUrl: http://poyee-im
|
|
|
- userUrl: /api/chat/room/people-list?roomId=%s
|
|
|
-
|
|
|
-forumServer:
|
|
|
- baseUrl: http://community
|
|
|
-
|
|
|
-mallServer:
|
|
|
- baseUrl: http://poyee-mall
|