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

7 lines
292 B
Bash
Raw Normal View History

#!/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