diff options
author | Alex Auvolat <alex@adnab.me> | 2021-12-30 19:27:32 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-12-30 19:27:32 +0100 |
commit | b00a8358b20ac99912bacafd8fee5466da257e67 (patch) | |
tree | df81c06567cbae31098ac77f41c9c11d67b9cc79 /env.sh | |
parent | 230c1d727b951e032603a5c776f540003829bff6 (diff) | |
download | nixcfg-b00a8358b20ac99912bacafd8fee5466da257e67.tar.gz nixcfg-b00a8358b20ac99912bacafd8fee5466da257e67.zip |
Add TLS to Nomad
Diffstat (limited to 'env.sh')
-rw-r--r-- | env.sh | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -0,0 +1,7 @@ +SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +YEAR=$(date +%Y) + +export NOMAD_ADDR=https://localhost:14646 +export NOMAD_CACERT=$SCRIPT_DIR/secrets/pki/nomad-ca.crt +export NOMAD_CLIENT_CERT=$SCRIPT_DIR/secrets/pki/nomad$YEAR-client.crt +export NOMAD_CLIENT_KEY=$SCRIPT_DIR/secrets/pki/nomad$YEAR-client.key |