| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221 |
- server:
- port: 8848
- spring:
- profiles:
- active: dev
- application:
- name: jetlinks-platform
- jackson:
- date-format: yyyy-MM-dd HH:mm:ss
- time-zone: Asia/Shanghai
- serialization:
- WRITE_DATES_AS_TIMESTAMPS: true
- default-property-inclusion: non_null
- resources:
- static-locations: file:./static/,/,classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/, classpath:/public/
- redis:
- host: 192.168.104.114
- # host: 1.15.89.83
- port: 6379
- password: 6E6985E1F7CB40F24A\.
- lettuce:
- pool:
- max-active: 1024
- max-idle: 8
- timeout: 20s
- serializer: jdk # 设置fst时,redis key使用string序列化,value使用 fst序列化.
- # database: 3
- # max-wait: 10s
- r2dbc:
- url: r2dbc:postgresql://192.168.104.114:5432/jetlinks?stringtype=unspecified
- # url: r2dbc:mysql://192.168.100.32:3306/jetlinks
- # username: root
- # password: 123456
- username: postgres
- password: jetlinks
- pool:
- max-size: 32
- reactor:
- debug-agent:
- enabled: false
- data:
- elasticsearch:
- client:
- reactive:
- endpoints: 192.168.104.114:9200
- max-in-memory-size: 100MB
- socket-timeout: 1000
- connection-timeout: 10000
- easyorm:
- default-schema: public # 数据库默认的schema
- dialect: postgres #数据库方言
- elasticsearch:
- embedded:
- enabled: false # 为true时使用内嵌的elasticsearch,不建议在生产环境中使用
- data-path: ./data/elasticsearch
- port: 9200
- host: 192.168.104.114
- client:
- host: 192.168.100.114
- port: 9200
- max-conn-total: 128
- connect-timeout: 5000
- socket-timeout: 5000
- connection-request-timeout: 8000
- index:
- default-strategy: time-by-month #默认es的索引按月进行分表, direct则为直接操作索引.
- settings:
- number-of-shards: 1 # es 分片数量
- number-of-replicas: 0 # 副本数量
- device:
- message:
- default-timeout: 20
- writer:
- time-series:
- enabled: true #写出设备消息数据到elasticsearch
- captcha:
- enabled: false # 开启验证码
- ttl: 5m #验证码过期时间,2分钟
- hsweb:
- cors:
- enable: true
- configs:
- - path: /**
- allowed-headers: "*"
- allowed-methods: ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"]
- allowed-origins: ["*"]
- allow-credentials: true
- max-age: 1800
- dict:
- enum-packages: org.jetlinks
- file:
- upload:
- static-file-path: ./static/upload
- static-location: http://localhost:8848/upload
- webflux:
- response-wrapper:
- enabled: true #开启响应包装器(将返回值包装为ResponseMessage)
- excludes: # 这下包下的接口不包装
- - org.springdoc
- # auth: #默认的用户配置
- # users:
- # admin:
- # username: admin
- # password: admin
- # name: 超级管理员
- authorize:
- auto-parse: true
- permission:
- filter:
- enabled: true # 设置为true开启权限过滤,赋权时,不能赋予比自己多的权限.
- exclude-username: admin # admin用户不受上述限制
- un-auth-strategy: ignore # error表示:发生越权时,抛出403错误. ignore表示会忽略越权的赋权.
- cache:
- type: redis
- redis:
- local-cache-type: guava
- jetlinks:
- # server-id: ${spring.application.name}:${server.port} #设备服务网关服务ID,不同服务请设置不同的ID
- logging:
- system:
- context:
- server: tuoren
- protocol:
- spi:
- enabled: true # 为true时开启自动加载通过依赖引入的协议包
- cluster: true
- logging:
- level:
- org.jetlinks: error
- rule.engine: debug
- org.hswebframework: error
- org.springframework.transaction: error
- org.springframework.data.r2dbc.connectionfactory: error
- io.micrometer: warn
- org.hswebframework.expands: error
- system: debug
- org.jetlinks.rule.engine: warn
- org.jetlinks.supports.event: warn
- org.springframework: warn
- org.jetlinks.community.device.message.writer: warn
- org.jetlinks.community.elastic.search.service: warn
- org.jetlinks.community.elastic.search.service.reactive: warn
- org.jetlinks.community.network: warn
- io.vertx.mqtt.impl: warn
- org.springframework.data.elasticsearch.client: trace
- # org.elasticsearch: error
- org.jetlinks.pro.influx: warn
- org.elasticsearch: error
- config: classpath:logback-spring.xml
- vertx:
- max-event-loop-execute-time-unit: seconds
- max-event-loop-execute-time: 30
- max-worker-execute-time-unit: seconds
- max-worker-execute-time: 30
- prefer-native-transport: true
- micrometer:
- time-series:
- tags:
- server: ${spring.application.name}
- metrics:
- default:
- step: 30s
- management:
- health:
- elasticsearch:
- enabled: false # 关闭elasticsearch健康检查
- springdoc:
- swagger-ui:
- path: /swagger-ui.html
- group-configs:
- - group: 固件升级相关接口
- packages-to-scan:
- - org.jetlinks.community.device.web
- paths-to-match:
- - /device-firmware/**
- - /firmware/upgrade/task/**
- - /firmware/upgrade/history/**
- - group: 云云对接相关接口
- packages-to-scan:
- - org.jetlinks.community.bridge.web
- - group: 设备管理相关接口
- packages-to-scan:
- - org.jetlinks.community.device
- paths-to-exclude:
- - /device-instance/**
- - /device-product/**
- - /protocol/**
- - group: 规则引擎相关接口
- packages-to-scan: org.jetlinks.community.rule.engine.web
- paths-to-exclude: /api/**
- - group: 通知管理相关接口
- packages-to-scan: org.jetlinks.community.notify.manager.web
- - group: 设备接入相关接口
- packages-to-scan:
- - org.jetlinks.community.network.manager.web
- - org.jetlinks.community.device.web
- paths-to-match:
- - /gateway/**
- - /network/**
- - /protocol/**
- - group: 系统管理相关接口
- packages-to-scan:
- - org.jetlinks.community.auth
- - org.hswebframework.web.system.authorization.defaults.webflux
- - org.hswebframework.web.file
- - org.hswebframework.web.authorization.basic.web
- - org.jetlinks.community.logging.controller
- - group: 可视化相关接口
- packages-to-scan:
- - org.jetlinks.community.visualization.web
- paths-to-match:
- - /visualization/**
- - /visualization/catalog/**
- cache:
- disabled: true
- visual:
- base-path: "http://127.0.0.1:8844"
- urls:
- big-screen-path: "http://192.168.104.115:9022/"
- vis-configuration: "http://192.168.104.115:9022/"
|