fix: secrets generated with gitea-cli
This commit is contained in:
parent
7f325085c4
commit
35c78dd847
@ -61,9 +61,9 @@ kcreatesec gitea-admin \
|
||||
--from-literal=password="$GITEA_PASSWORD"
|
||||
|
||||
kcreatesec gitea \
|
||||
--from-literal=secret_key="$(kgseckey gitea secret_key || openssl rand -hex 32)" \
|
||||
--from-literal=internal_token="$(kgseckey gitea internal_token || openssl rand -hex 32)" \
|
||||
--from-literal=oauth2_jwt_secret="$(kgseckey gitea oauth2_jwt_secret || openssl rand -hex 32)"
|
||||
--from-literal=secret_key="$(kgseckey gitea secret_key || kubectl run -i --rm --image "$IMAGEAPP" "$RANDOM" gitea generate secret SECRET_KEY)" \
|
||||
--from-literal=internal_token="$(kgseckey gitea internal_token || kubectl run -i --rm --image "$IMAGEAPP" "$RANDOM" gitea generate secret INTERNAL_TOKEN)" \
|
||||
--from-literal=oauth2_jwt_secret="$(kgseckey gitea oauth2_jwt_secret || kubectl run -i --rm --image "$IMAGEAPP" "$RANDOM" gitea generate secret JWT_SECRET)"
|
||||
|
||||
kcreatecm gitea \
|
||||
--from-file=app.ini=<(envsubst "$(env | xargs printf '$%s ')" < config/app.ini)
|
||||
|
Loading…
Reference in New Issue
Block a user