From b2832a55f26ee7d21445e5f8012763043c71f1f0 Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Fri, 27 Sep 2024 14:08:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BB=93=E5=82=A8=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/bootstrap-sgzb_bns_local.yml | 27 ++++++++++++ .../resources/bootstrap-sgzb_bns_local.yml | 43 +++++++++++++++++++ .../resources/bootstrap-sgzb_bns_local.yml | 28 ++++++++++++ 3 files changed, 98 insertions(+) create mode 100644 bonus-auth/src/main/resources/bootstrap-sgzb_bns_local.yml create mode 100644 bonus-gateway/src/main/resources/bootstrap-sgzb_bns_local.yml create mode 100644 bonus-modules/bonus-system/src/main/resources/bootstrap-sgzb_bns_local.yml diff --git a/bonus-auth/src/main/resources/bootstrap-sgzb_bns_local.yml b/bonus-auth/src/main/resources/bootstrap-sgzb_bns_local.yml new file mode 100644 index 0000000..45f3441 --- /dev/null +++ b/bonus-auth/src/main/resources/bootstrap-sgzb_bns_local.yml @@ -0,0 +1,27 @@ +# Tomcat +server: + port: 18081 + +# Spring +spring: + cloud: + nacos: + discovery: + # 服务注册地址 + server-addr: 127.0.0.1:8848 + namespace: sgzb_bns + config: + # 配置中心地址 + server-addr: 127.0.0.1:8848 + namespace: sgzb_bns + # 配置文件格式 + file-extension: yml + # 共享配置 + shared-configs: + - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} + +#加密组件 +jasypt: + encryptor: + password: Encrypt + diff --git a/bonus-gateway/src/main/resources/bootstrap-sgzb_bns_local.yml b/bonus-gateway/src/main/resources/bootstrap-sgzb_bns_local.yml new file mode 100644 index 0000000..8e18c71 --- /dev/null +++ b/bonus-gateway/src/main/resources/bootstrap-sgzb_bns_local.yml @@ -0,0 +1,43 @@ +# Tomcat +server: + port: 18080 + +# Spring +spring: + cloud: + nacos: + discovery: + # 服务注册地址 + server-addr: 127.0.0.1:8848 + namespace: sgzb_bns + config: + # 配置中心地址 + server-addr: 127.0.0.1:8848 + namespace: sgzb_bns + # 配置文件格式 + file-extension: yml + # 共享配置 + shared-configs: + - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} + sentinel: + # 取消控制台懒加载 + eager: true + transport: + # 控制台地址 + dashboard: 127.0.0.1:18858 + # nacos配置持久化 + datasource: + ds1: + nacos: + server-addr: 127.0.0.1:8848 + namespace: sgzb_bns + dataId: sentinel-bonus-gateway + groupId: DEFAULT_GROUP + data-type: json + rule-type: gw-flow + +#加密组件 +jasypt: + encryptor: + password: Encrypt + diff --git a/bonus-modules/bonus-system/src/main/resources/bootstrap-sgzb_bns_local.yml b/bonus-modules/bonus-system/src/main/resources/bootstrap-sgzb_bns_local.yml new file mode 100644 index 0000000..09e336e --- /dev/null +++ b/bonus-modules/bonus-system/src/main/resources/bootstrap-sgzb_bns_local.yml @@ -0,0 +1,28 @@ +# Tomcat +server: + port: 18082 + +# Spring +spring: + cloud: + nacos: + discovery: + # 服务注册地址 + server-addr: 127.0.0.1:8848 + # namespace: sgzb_bns + namespace: sgzb_bns + config: + # 配置中心地址 + server-addr: 127.0.0.1:8848 + # namespace: sgzb_bns + namespace: sgzb_bns + # 配置文件格式 + file-extension: yml + # 共享配置 + shared-configs: + - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} + +#加密组件 +jasypt: + encryptor: + password: Encrypt