five-groups-couplet/couplet-gateway/src/main/resources/bootstrap.yml

45 lines
1.1 KiB
YAML

# Tomcat
server:
port: 8080
# Spring
spring:
application:
# 应用名称
name: couplet-gateway
profiles:
# 环境配置
active: dev
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: 121.89.211.230:8848
namespace: 968741d4-299d-483c-8d30-ede2aff8cfd4
config:
# 配置中心地址
server-addr: 121.89.211.230:8848
namespace: 968741d4-299d-483c-8d30-ede2aff8cfd4
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
sentinel:
# 取消控制台懒加载
eager: true
transport:
# 控制台地址
dashboard: 121.89.211.230:8718
# nacos配置持久化
datasource:
ds1:
nacos:
server-addr: 121.89.211.230:8848
dataId: sentinel-couplet-gateway
groupId: DEFAULT_GROUP
data-type: json
rule-type: gw-flow
main:
allow-bean-definition-overriding: true