mirror of https://gitee.com/bigwinds/arangodb
startLocalCluster to handle jwt-secret-file (#8278)
This commit is contained in:
parent
3e02a726ee
commit
b2d31ccb79
|
@ -105,7 +105,8 @@ if [ -z "$JWT_SECRET" ];then
|
|||
AUTHENTICATION="--server.authentication false"
|
||||
AUTHORIZATION_HEADER=""
|
||||
else
|
||||
AUTHENTICATION="--server.jwt-secret $JWT_SECRET"
|
||||
echo $JWT_SECRET > cluster/secret.txt
|
||||
AUTHENTICATION="--server.jwt-secret-keyfile cluster/secret.txt"
|
||||
AUTHORIZATION_HEADER="Authorization: bearer $(jwtgen -a HS256 -s $JWT_SECRET -c 'iss=arangodb' -c 'server_id=setup')"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue