gzdevicemgt/sgzb-gateway/src/main/resources/bootstrap-sgzb_nw_dev.yml

47 lines
1.1 KiB
YAML
Raw Normal View History

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