GJGJJ/dems-mcgs/config/application-dev.yml

76 lines
2.0 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

spring:
#security资源服务器配置
security:
oauth2:
resourceserver:
#spring security oauth2默认用的就是这个token但网上资料很少网上用的都是jwt
opaquetoken:
client-id: test
client-secret: test
#这个就是验证token的地址坑了我好久网上都没找到说明
# introspection-uri: http://dcim-oauth/oauth2/introspect
introspection-uri: http://jt-oauth/oauth2/introspect
cloud:
nacos:
discovery:
# 如果使用nacos集群则将所有集群节点的ip:port用逗号连接写在此处
server-addr: 10.7.248.82:8848,10.7.248.83:8848,10.7.248.84:8848
# username: nacos
# password: nacos
namespace: springboot3
# 多网卡时需要指定一下取本地的哪个ip
ip: 10.6.8.106
# ip: 10.147.20.214
openfeign:
circuitbreaker:
enabled: true
client:
config:
default:
connectTimeout: 6000
readTimeout: 6000
compression:
request:
enabled: true
mime-types:
- text/xml
- application/xml
- application/json
min-request-size: 2048 # 超过2048的字节进行压缩
response:
enabled: true
resilience4j:
timelimiter:
configs:
default:
timeoutDuration: 6000ms
netpro:
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://10.7.248.83:3308/dems_mcgs_test?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=Hongkong
username: root
password: tjjt1234
servlet:
gzip:
enabled: true
mcgs:
security:
white-list:
- /static/**
- /login
- /zutaiIndex
- /parse
- /document/get/**
- /dems/updateDeviceData
- /upload/**
auth-service: jt-oauth
logging:
level:
root: error
com.netpro: debug