Merge pull request #68649 from talyz/gitlab-fix
nixos/gitlab: Fix swap of secrets
This commit is contained in:
commit
1987bddea8
@ -806,8 +806,8 @@ in {
|
|||||||
export otp="$(<'${cfg.secrets.otpFile}')"
|
export otp="$(<'${cfg.secrets.otpFile}')"
|
||||||
export jws="$(<'${cfg.secrets.jwsFile}')"
|
export jws="$(<'${cfg.secrets.jwsFile}')"
|
||||||
${pkgs.jq}/bin/jq -n '{production: {secret_key_base: $ENV.secret,
|
${pkgs.jq}/bin/jq -n '{production: {secret_key_base: $ENV.secret,
|
||||||
otp_key_base: $ENV.db,
|
otp_key_base: $ENV.otp,
|
||||||
db_key_base: $ENV.otp,
|
db_key_base: $ENV.db,
|
||||||
openid_connect_signing_key: $ENV.jws}}' \
|
openid_connect_signing_key: $ENV.jws}}' \
|
||||||
> '${cfg.statePath}/config/secrets.yml'
|
> '${cfg.statePath}/config/secrets.yml'
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user