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

7 lines
292 B
Bash
Raw Normal View History

2018-08-14 23:47:53 -04:00
#!/bin/bash
echo Setting environment variables to access local vault..
2018-09-02 15:33:11 -04:00
SCRIPTPATH=$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )
2018-08-14 23:47:53 -04:00
export VAULT_ADDR=https://localhost:8200
export VAULT_CACERT=$SCRIPTPATH/src/test/vault-config/localhost.cert
export VAULT_TLS_SERVER_NAME=localhost