Add vault

This commit is contained in:
2024-04-14 14:14:41 +02:00
parent cee40abba8
commit 999a8ab5ed
3 changed files with 17 additions and 2 deletions

7
scripts/env.sh Normal file
View File

@@ -0,0 +1,7 @@
#! /usr/bin/env sh
response=`curl -X 'GET' "https://$VAULT_HOST/v1/$VAULT_SECRET_PATH" -s \
-H 'accept: application/json' \
-H "X-Vault-Token: $VAULT_TOKEN"`
echo "$(echo "$response" | jq -r '.data.data | to_entries | map("\(.key)=\(.value)") | .[]')"

5
scripts/start.sh Normal file
View File

@@ -0,0 +1,5 @@
#! /usr/bin/env sh
export $(/env.sh)
exec /usr/local/bin/users_settings_server