From f596dac1bf9a7ad640a8f2b1eeb2928ea11cf97e Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Wed, 21 Aug 2024 11:19:27 +0800 Subject: [PATCH] profile --- .../resources/bootstrap-sgzb_cloud_dev.yml | 40 ++++++++++++++++++ .../resources/bootstrap-sgzb_cloud_local.yml | 40 ++++++++++++++++++ sgzb-auth/src/main/resources/bootstrap.yml | 41 +------------------ 3 files changed, 81 insertions(+), 40 deletions(-) create mode 100644 sgzb-auth/src/main/resources/bootstrap-sgzb_cloud_dev.yml create mode 100644 sgzb-auth/src/main/resources/bootstrap-sgzb_cloud_local.yml diff --git a/sgzb-auth/src/main/resources/bootstrap-sgzb_cloud_dev.yml b/sgzb-auth/src/main/resources/bootstrap-sgzb_cloud_dev.yml new file mode 100644 index 00000000..f9c9b4d8 --- /dev/null +++ b/sgzb-auth/src/main/resources/bootstrap-sgzb_cloud_dev.yml @@ -0,0 +1,40 @@ +# Spring Boot Actuator V2中风险漏洞处理,禁止远程端口访问 +management: + endpoint: + env: + enabled: false + +# Spring +spring: + cloud: + nacos: + discovery: + # 服务注册地址 + server-addr: 192.168.0.14:8848 + namespace: sgzb_cloud_dev_nxjj + config: + # 配置中心地址 + server-addr: 192.168.0.14:8848 + namespace: sgzb_cloud_dev_nxjj + # 配置文件格式 + file-extension: yml + # 共享配置 + shared-configs: + - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} + +onlineApprove: /lbcloud-oauth/oauth/token +wechatAppId: crhmaxnE +wechatAppsecret: 3893e6ed90d325f00e34583dd970a56580c05549 +getNowPersonDetailData: /lbcloud-user/user/queryLoginUserInfo +baseUrl: https://test-sso.csgmall.com.cn +appAppsecret: d8e6db9fa9bb09da0e270fa739233c823bf9c5f0 +personEasyList: /lbcloud-user/api/user/queryAndPaging/basicInfo +h5Appsecret: 3c4a67b7f6a268b4202a5328e6a1726979d5903b +h5AppId: G3NksDH2 +appsecret: 596e4863c8d112842ce820c130b236001297ea73 +appId: akvVFYgy +appAppId: u8LLfynf +getPersonDetailData: /lbcloud-user/api/user/queryById +registerPhone: /lbcloud-user/api/user/registrationByPhone +userBindUrl: /lbcloud-authority/api/RoleClient/bindDefaultSystemRole +verifyPhoneCode: /lbcloud-mbroker/api/broker/simpleVerificationCode \ No newline at end of file diff --git a/sgzb-auth/src/main/resources/bootstrap-sgzb_cloud_local.yml b/sgzb-auth/src/main/resources/bootstrap-sgzb_cloud_local.yml new file mode 100644 index 00000000..e7f1fe1d --- /dev/null +++ b/sgzb-auth/src/main/resources/bootstrap-sgzb_cloud_local.yml @@ -0,0 +1,40 @@ +# Spring Boot Actuator V2中风险漏洞处理,禁止远程端口访问 +management: + endpoint: + env: + enabled: false + +# Spring +spring: + cloud: + nacos: + discovery: + # 服务注册地址 + server-addr: 127.0.0.1:8848 + namespace: sgzb_cloud_dev_nxjj + config: + # 配置中心地址 + server-addr: 127.0.0.1:8848 + namespace: sgzb_cloud_dev_nxjj + # 配置文件格式 + file-extension: yml + # 共享配置 + shared-configs: + - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} + +onlineApprove: /lbcloud-oauth/oauth/token +wechatAppId: crhmaxnE +wechatAppsecret: 3893e6ed90d325f00e34583dd970a56580c05549 +getNowPersonDetailData: /lbcloud-user/user/queryLoginUserInfo +baseUrl: https://test-sso.csgmall.com.cn +appAppsecret: d8e6db9fa9bb09da0e270fa739233c823bf9c5f0 +personEasyList: /lbcloud-user/api/user/queryAndPaging/basicInfo +h5Appsecret: 3c4a67b7f6a268b4202a5328e6a1726979d5903b +h5AppId: G3NksDH2 +appsecret: 596e4863c8d112842ce820c130b236001297ea73 +appId: akvVFYgy +appAppId: u8LLfynf +getPersonDetailData: /lbcloud-user/api/user/queryById +registerPhone: /lbcloud-user/api/user/registrationByPhone +userBindUrl: /lbcloud-authority/api/RoleClient/bindDefaultSystemRole +verifyPhoneCode: /lbcloud-mbroker/api/broker/simpleVerificationCode \ No newline at end of file diff --git a/sgzb-auth/src/main/resources/bootstrap.yml b/sgzb-auth/src/main/resources/bootstrap.yml index 31bcd472..d0081612 100644 --- a/sgzb-auth/src/main/resources/bootstrap.yml +++ b/sgzb-auth/src/main/resources/bootstrap.yml @@ -2,13 +2,6 @@ server: port: 29200 - -# Spring Boot Actuator V2中风险漏洞处理,禁止远程端口访问 -management: - endpoint: - env: - enabled: false - # Spring spring: application: @@ -16,36 +9,4 @@ spring: name: sgzb-auth profiles: # 环境配置 - active: sgzb_cloud_dev - cloud: - nacos: - discovery: - # 服务注册地址 - server-addr: 192.168.0.14:8848 - namespace: sgzb_cloud_dev - config: - # 配置中心地址 - server-addr: 192.168.0.14:8848 - namespace: sgzb_cloud_dev - # 配置文件格式 - file-extension: yml - # 共享配置 - shared-configs: - - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} - -onlineApprove: /lbcloud-oauth/oauth/token -wechatAppId: crhmaxnE -wechatAppsecret: 3893e6ed90d325f00e34583dd970a56580c05549 -getNowPersonDetailData: /lbcloud-user/user/queryLoginUserInfo -baseUrl: https://test-sso.csgmall.com.cn -appAppsecret: d8e6db9fa9bb09da0e270fa739233c823bf9c5f0 -personEasyList: /lbcloud-user/api/user/queryAndPaging/basicInfo -h5Appsecret: 3c4a67b7f6a268b4202a5328e6a1726979d5903b -h5AppId: G3NksDH2 -appsecret: 596e4863c8d112842ce820c130b236001297ea73 -appId: akvVFYgy -appAppId: u8LLfynf -getPersonDetailData: /lbcloud-user/api/user/queryById -registerPhone: /lbcloud-user/api/user/registrationByPhone -userBindUrl: /lbcloud-authority/api/RoleClient/bindDefaultSystemRole -verifyPhoneCode: /lbcloud-mbroker/api/broker/simpleVerificationCode \ No newline at end of file + active: sgzb_cloud_local