| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- # 项目相关配置
- app:
- # 项目名称
- name: nb
- # 实例演示开关
- demoEnabled: false
- # 获取ip地址开关
- addressEnabled: true
- # 上传类型,minio;aliyun
- uploadType: aliyun
- # 上传目录
- uploadDir: D:/${app.name}-files
- # 缓存前缀
- cachePrefix: ${app.name}:dev
- # MinIO相关配置
- minio:
- uploadEndpoint: 192.168.100.32
- uploadPort: 7001
- uploadSecure: false
- downEndpoint: 192.168.100.32
- downPort: 7002
- downSecure: false
- accessKey: nbnetpump
- secretKey: tuoren123
- bucketName: ${app.name}-${profiles.active}-bucket
- # 数据源配置
- spring:
- datasource:
- type: com.alibaba.druid.pool.DruidDataSource
- driverClassName: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://192.168.100.32:3306/nbnetpump?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true
- username: root
- password: 123456
- druid:
- # 初始连接数
- initialSize: 16
- # 最小连接池数量
- minIdle: 20
- # 最大连接池数量
- maxActive: 20
- # 配置获取连接等待超时的时间
- maxWait: 60000
- # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
- timeBetweenEvictionRunsMillis: 60000
- # 配置一个连接在池中最小生存的时间,单位是毫秒
- minEvictableIdleTimeMillis: 300000
- # 配置一个连接在池中最大生存的时间,单位是毫秒
- maxEvictableIdleTimeMillis: 900000
- # 配置检测连接是否有效
- validationQuery: SELECT 1 FROM DUAL
- testWhileIdle: true
- testOnBorrow: false
- testOnReturn: false
- # 通过别名的方式配置扩展插件,多个英文逗号分隔,常用的插件有:
- # 监控统计用的filter:stat
- # 日志用的filter:log4j2
- # 防御sql注入的filter:wall
- filters: log4j2
- webStatFilter:
- enabled: true
- statViewServlet:
- enabled: true
- # 设置白名单,不填则允许所有访问
- allow:
- url-pattern: /druid/*
- # 控制台管理用户名和密码
- login-username: admin
- login-password: admin
- filter:
- stat:
- enabled: true
- # 慢SQL记录
- log-slow-sql: true
- slow-sql-millis: 10000
- merge-sql: true
- wall:
- config:
- multi-statement-allow: true
- quartz:
- job-store-type: jdbc
- jdbc:
- initialize-schema: never
- properties:
- org:
- quartz:
- scheduler:
- instanceName: NbDevScheduler
- instanceId: AUTO
- jobStore:
- class: org.quartz.impl.jdbcjobstore.JobStoreTX
- driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
- tablePrefix: QRTZ_
- isClustered: true
- clusterCheckinInterval: 10000
- useProperties: false
- dataSource: myDS
- threadPool:
- class: org.quartz.simpl.SimpleThreadPool
- threadCount: 10
- threadPriority: 5
- threadsInheritContextClassLoaderOfInitializingThread: true
- dataSource:
- myDS:
- provider: hikaricp
- driver: com.mysql.cj.jdbc.Driver
- URL: jdbc:mysql://192.168.100.32:3306/nbnetpump?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true
- user: root
- password: 123456
- validationQuery: SELECT 1
- rabbitmq:
- host: 192.168.100.32
- port: 5672
- username: guest
- password: guest
- virtual-host: /
- # redis 配置
- redis:
- # 地址
- host: 192.168.100.32
- # 端口,默认为6379
- port: 9736
- # 数据库索引
- database: 6
- # 密码
- password: 6E6985E1F7CB40F24A\.
- # 连接超时时间
- timeout: 30s
- lettuce:
- pool:
- # 连接池中的最小空闲连接
- min-idle: 16
- # 连接池中的最大空闲连接
- max-idle: 16
- # 连接池的最大数据库连接数
- max-active: 16
- # #连接池最大阻塞等待时间(使用负值表示没有限制)
- max-wait: -1ms
- request:
- check:
- enable: false
- # 开启请求验签
- sign: true
- # 请求与服务器时间间隔不得超过 10分钟
- expire-interval: 600
- # 请求不可重复接收时间 10分钟
- repeat-interval: 600
- # 阿里云对接配置
- iot:
- consumers:
- - enable: false
- consumer: com.nb.aliyun.service.consumer.NBAndFourGConsumerGroupService
- name: NB
- config:
- accessKey: "LTAI4G7FA9ytMc76oNkJ45YJ"
- accessSecret: "R7hOvMfiHb0PYroDqUDXAYgB9htQss"
- consumerGroupId: "NZKDBbvhxUqtcF5VqDb2000100"
- aliyunUid: "1238892013759131"
- regionId: "cn-shanghai"
- iotInstanceId: "iot-060a0bgd"
- productKey: he1fACg7ySx
- - enable: false
- consumer: com.nb.aliyun.service.consumer.NBAndFourGConsumerGroupService
- name: 4G
- config:
- accessKey: "LTAI5tRaK95AqvWiQ9LspZ3q"
- accessSecret: "wZUpYGeztNcV4tGbBLfK2OvxnZzZF3"
- consumerGroupId: "0na0olXpWEmWgMucxIH1000100"
- aliyunUid: "1777492656465771"
- regionId: "cn-shanghai"
- iotInstanceId: "iot-06z00hi2guq5qi3"
- productKey: k0g9w9xRhhi
- aliyun:
- accessKey: "LTAI4G7FA9ytMc76oNkJ45YJ"
- accessSecret: "R7hOvMfiHb0PYroDqUDXAYgB9htQss"
- oss:
- aliyun:
- accessKey: "LTAI4G7FA9ytMc76oNkJ45YJ"
- accessSecret: "R7hOvMfiHb0PYroDqUDXAYgB9htQss"
- endpoint: "oss-cn-hangzhou.aliyuncs.com"
- bucketName: "tuoren-nb-dev"
- notify:
- wechat:
- url: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=c3e093fe-5125-47d5-a171-0f4be2f61a78
|