cqdevicemgt/sgzb-gateway/src/main/resources/bootstrap-sgzb_cloud_dev.yml

51 lines
1.2 KiB
YAML
Raw Normal View History

2024-08-11 10:19:33 +08:00
# Spring Boot Actuator V2中风险漏洞处理禁止远程端口访问
management:
endpoint:
env:
enabled: false
# Spring
spring:
cloud:
loadbalancer:
# 关闭Ribbon的负载均衡器
ribbon:
enabled: false
# 开启Nacos的负载均衡器
nacos:
enabled: true
nacos:
discovery:
# 服务注册地址
2024-08-11 10:33:43 +08:00
server-addr: 192.168.0.62:8848
2024-08-11 10:19:33 +08:00
namespace: sgzb_cloud_dev_cqjj
config:
# 配置中心地址
2024-08-11 10:33:43 +08:00
server-addr: 192.168.0.62:8848
2024-08-11 10:19:33 +08:00
namespace: sgzb_cloud_dev_cqjj
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
sentinel:
# 取消控制台懒加载
eager: true
transport:
# 控制台地址
2024-08-11 10:33:43 +08:00
dashboard: 192.168.0.62:8718
2024-08-11 10:19:33 +08:00
# nacos配置持久化
datasource:
ds1:
nacos:
2024-08-11 10:33:43 +08:00
server-addr: 192.168.0.62:8848
2024-08-11 10:19:33 +08:00
dataId: sentinel-sgzb-gateway
groupId: DEFAULT_GROUP
data-type: json
rule-type: gw-flow
#加密组件
jasypt:
encryptor:
password: Encrypt