profile
This commit is contained in:
parent
f596dac1bf
commit
e58839bd95
|
|
@ -0,0 +1,50 @@
|
||||||
|
# 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}
|
||||||
|
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
|
||||||
|
|
||||||
|
#加密组件
|
||||||
|
jasypt:
|
||||||
|
encryptor:
|
||||||
|
password: Encrypt
|
||||||
|
|
@ -0,0 +1,50 @@
|
||||||
|
# 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}
|
||||||
|
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
|
||||||
|
|
||||||
|
#加密组件
|
||||||
|
jasypt:
|
||||||
|
encryptor:
|
||||||
|
password: Encrypt
|
||||||
|
|
@ -2,12 +2,6 @@
|
||||||
server:
|
server:
|
||||||
port: 28080
|
port: 28080
|
||||||
|
|
||||||
# Spring Boot Actuator V2中风险漏洞处理,禁止远程端口访问
|
|
||||||
management:
|
|
||||||
endpoint:
|
|
||||||
env:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
# Spring
|
# Spring
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
|
|
@ -15,46 +9,4 @@ spring:
|
||||||
name: sgzb-gateway
|
name: sgzb-gateway
|
||||||
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}
|
|
||||||
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
|
|
||||||
|
|
||||||
#加密组件
|
|
||||||
jasypt:
|
|
||||||
encryptor:
|
|
||||||
password: Encrypt
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue