java-tutorials/spring-cloud/spring-cloud-vault/vault-env.sh

7 lines
292 B
Bash
Raw Normal View History

2019-10-26 17:37:05 -04:00
#!/bin/bash
echo Setting environment variables to access local vault..
SCRIPTPATH=$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )
export VAULT_ADDR=https://localhost:8200
export VAULT_CACERT=$SCRIPTPATH/src/test/vault-config/localhost.cert
export VAULT_TLS_SERVER_NAME=localhost