profile
This commit is contained in:
parent
7ba0e27fae
commit
84cf4c6d4d
|
|
@ -0,0 +1,30 @@
|
||||||
|
# Spring Boot Actuator V2中风险漏洞处理,禁止远程端口访问
|
||||||
|
management:
|
||||||
|
endpoint:
|
||||||
|
env:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
# Spring
|
||||||
|
spring:
|
||||||
|
cloud:
|
||||||
|
loadbalancer:
|
||||||
|
# 关闭Ribbon的负载均衡器
|
||||||
|
ribbon:
|
||||||
|
enabled: false
|
||||||
|
# 开启Nacos的负载均衡器
|
||||||
|
nacos:
|
||||||
|
enabled: true
|
||||||
|
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}
|
||||||
|
|
@ -0,0 +1,30 @@
|
||||||
|
# Spring Boot Actuator V2中风险漏洞处理,禁止远程端口访问
|
||||||
|
management:
|
||||||
|
endpoint:
|
||||||
|
env:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
# Spring
|
||||||
|
spring:
|
||||||
|
cloud:
|
||||||
|
loadbalancer:
|
||||||
|
# 关闭Ribbon的负载均衡器
|
||||||
|
ribbon:
|
||||||
|
enabled: false
|
||||||
|
# 开启Nacos的负载均衡器
|
||||||
|
nacos:
|
||||||
|
enabled: true
|
||||||
|
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}
|
||||||
|
|
@ -2,13 +2,6 @@
|
||||||
server:
|
server:
|
||||||
port: 29301
|
port: 29301
|
||||||
|
|
||||||
|
|
||||||
# Spring Boot Actuator V2中风险漏洞处理,禁止远程端口访问
|
|
||||||
management:
|
|
||||||
endpoint:
|
|
||||||
env:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
# Spring
|
# Spring
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
|
|
@ -16,26 +9,4 @@ spring:
|
||||||
name: sgzb-base
|
name: sgzb-base
|
||||||
profiles:
|
profiles:
|
||||||
# 环境配置
|
# 环境配置
|
||||||
active: sgzb_cloud_dev
|
active: sgzb_cloud_local
|
||||||
cloud:
|
|
||||||
loadbalancer:
|
|
||||||
# 关闭Ribbon的负载均衡器
|
|
||||||
ribbon:
|
|
||||||
enabled: false
|
|
||||||
# 开启Nacos的负载均衡器
|
|
||||||
nacos:
|
|
||||||
enabled: true
|
|
||||||
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}
|
|
||||||
Loading…
Reference in New Issue