forked from nemonik/heimdall2-helm
-
Notifications
You must be signed in to change notification settings - Fork 1
/
start-heimdall2.sh
executable file
·37 lines (32 loc) · 1.18 KB
/
start-heimdall2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Copyright (C) 2020 Michael Joseph Walsh - All Rights Reserved
# You may use, distribute and modify this code under the
# terms of the the license.
#
# You should have received a copy of the license with
# this file. If not, please email <[email protected]>
source .env
# secrets
DATABASE_USERNAME="postgres"
DATABASE_PASSWORD="$(openssl rand -hex 33)"
JWT_SECRET="$(openssl rand -hex 64)"
JWT_EXPIRE_TIME="1d"
API_KEY_SECRET="$(openssl rand -hex 33)"
NAMESPACE="heimdall"
# Install heimdall
helm install heimdall heimdall2-helm/heimdall \
-n $NAMESPACE --create-namespace \
-f heimdall2/values.yaml \
--set databaseUsername=$DATABASE_USERNAME \
--set databasePassword=$DATABASE_PASSWORD \
--set jwtSecret=$JWT_SECRET \
--set jwtExpireTime=$JWT_EXPIRE_TIME \
--set apiKeySecret=$API_KEY_SECRET \
--set externalUrl=$EXTERNAL_URL \
--set oidcName=$OIDC_NAME \
--set oidcIssuer=$OIDC_ISSUER \
--set oidcAuthorizationUrl=$OIDC_AUTHORIZATION_URL \
--set oidcTokenUrl=$OIDC_TOKEN_URL \
--set oidcUserInfoUrl=$OIDC_USER_INFO_URL \
--set oidcClientId=$OIDC_CLIENTID \
--set oidcClientSecret=$OIDC_CLIENT_SECRET