我想设置一个配置服务器,它能够使用Vault和git作为配置后端。我不太明白关于配置的一些事情:
spring:
application:
name: tdev-wssc-configserver
profiles:
active: git, vault
cloud:
config:
server:
git:
uri: file:///path/to/git/repo
order: 2
vault:
host: ${vault_server_host:localhost}
port: ${vault_server_port:8200}
order: 1
vault:
enabled: true
host: ${vault_server_host:localhost}
port: ${vault_server_port:8200}
scheme: ${vault_server_scheme:https}
connection-timeout: 5000
read-timeout: 15000
fail-fast: true
config:
order: -10
ssl:
trust-store: file:keystore.jks
trust-store-password: secret为什么我需要设置spring.cloud.config.server.vault和spring.cloud.vault
我真的需要同时设置这两个吗?
它们之间的区别是什么?
我只希望我的客户端能够直接从配置服务器获取配置,而不管是否存在Vault。
因此,只有在配置服务器上请求的客户端和配置服务器才会参与从Vault获取机密。
https://stackoverflow.com/questions/51280075
复制相似问题