# 项目相关配置 app: # 项目名称 name: nb # 实例演示开关 demoEnabled: false # 获取ip地址开关 addressEnabled: false # 上传类型,minio;aliyun uploadType: aliyun # 上传目录 uploadDir: D:/${app.name}-files # 缓存前缀 cachePrefix: ${app.name}:prod # MinIO相关配置 # MinIO相关配置 #minio: # upload: # endpoint: pca.tuoren.com # accessKey: tuoren # secretKey: Tuoren@123 # down: # endpoint: pca.tuoren.com # accessKey: tuoren # secretKey: Tuoren@123 # bucketName: ${app.name}-${profiles.active}-bucket # port: 5001 # secure: true 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://47.101.214.91:7001/nbnetpump?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true username: root password: Tuoren123. druid: # 初始连接数 initialSize: 5 # 最小连接池数量 minIdle: 10 # 最大连接池数量 maxActive: 20 # 配置获取连接等待超时的时间 maxWait: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 timeBetweenEvictionRunsMillis: 60000 # 配置一个连接在池中最小生存的时间,单位是毫秒 minEvictableIdleTimeMillis: 300000 # 配置一个连接在池中最大生存的时间,单位是毫秒 maxEvictableIdleTimeMillis: 900000 # 配置检测连接是否有效 validationQuery: SELECT 1 FROM DUAL testWhileIdle: true testOnBorrow: false testOnReturn: false # 通过别名的方式配置扩展插件,多个英文逗号分隔,常用的插件有: # 监控统计用的filter:stat # 日志用的filter:log4j # 防御sql注入的filter:wall filters: stat,wall,log4j2 #log4j webStatFilter: enabled: true statViewServlet: enabled: true # 设置白名单,不填则允许所有访问 allow: url-pattern: /druid/* # 控制台管理用户名和密码 login-username: tuoren login-password: Tuoren123. filter: stat: enabled: true # 慢SQL记录 log-slow-sql: true slow-sql-millis: 10000 merge-sql: true wall: config: multi-statement-allow: true #合并多个DruidDataSource的监控数据 use-global-data-source-stat: true # redis 配置 redis: # 地址 host: 47.101.214.91 # 端口,默认为6379 port: 7003 # 数据库索引 database: 0 # 密码 password: 6E6985E1F7CB40F24A\. # 连接超时时间 timeout: 30s lettuce: pool: # 连接池中的最小空闲连接 min-idle: 16 # 连接池中的最大空闲连接 max-idle: 16 # 连接池的最大数据库连接数 max-active: 16 # #连接池最大阻塞等待时间(使用负值表示没有限制) max-wait: -1ms request: check: enable: false # 开启请求验签 sign: false # 请求与服务器时间间隔不得超过 10分钟 expire-interval: 600 # 请求不可重复接收时间 10分钟 repeat-interval: 600 # 阿里云对接配置 iot: consumers: - enable: true consumer: com.nb.aliyun.service.consumer.NBAndFourGConsumerGroupService name: NB config: accessKey: "LTAI4G7FA9ytMc76oNkJ45YJ" accessSecret: "R7hOvMfiHb0PYroDqUDXAYgB9htQss" consumerGroupId: "v5UP8CWgZKWt1FFubh5B000100" aliyunUid: "1238892013759131" regionId: "cn-shanghai" iotInstanceId: "iot-060a0bgd" enable: true productKey: he1f6YdSWHW - enable: true consumer: com.nb.aliyun.service.consumer.NBAndFourGConsumerGroupService name: NB config: accessKey: "LTAI4G7FA9ytMc76oNkJ45YJ" accessSecret: "R7hOvMfiHb0PYroDqUDXAYgB9htQss" consumerGroupId: "fjMZozdJSpiDcWpxzkPG000100" aliyunUid: "1238892013759131" regionId: "cn-shanghai" iotInstanceId: "iot-060a0bgd" enable: true productKey: he1fAihB9M9 # 阿里云对接配置 aliyun: accessKey: "LTAI4G7FA9ytMc76oNkJ45YJ" accessSecret: "R7hOvMfiHb0PYroDqUDXAYgB9htQss" consumerGroupId: "v5UP8CWgZKWt1FFubh5B000100" aliyunUid: "1238892013759131" regionId: "cn-shanghai" # iotInstanceId:企业版实例请填写实例ID,公共实例请填空字符串""。 iotInstanceId: "iot-060a0bgd" server-subscription: enable: false # 是否开启阿里云物联网服务端订阅 product: productKey: he1f6YdSWHW oss: aliyun: accessKey: "LTAI4G7FA9ytMc76oNkJ45YJ" accessSecret: "R7hOvMfiHb0PYroDqUDXAYgB9htQss" endpoint: "oss-cn-hangzhou.aliyuncs.com" bucketName: "tuoren-nb-prod" notify: wechat: url: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=ebeb023b-6f39-4f08-bd5a-67c5f3653107 knife4j: enable: true production: true setting: custom-code: 200