Merge pull request #68649 from talyz/gitlab-fix

nixos/gitlab: Fix swap of secrets
This commit is contained in:
Robin Gloster 2019-09-13 13:36:00 +02:00 committed by GitHub
commit 1987bddea8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -806,8 +806,8 @@ in {
export otp="$(<'${cfg.secrets.otpFile}')"
export jws="$(<'${cfg.secrets.jwsFile}')"
${pkgs.jq}/bin/jq -n '{production: {secret_key_base: $ENV.secret,
otp_key_base: $ENV.db,
db_key_base: $ENV.otp,
otp_key_base: $ENV.otp,
db_key_base: $ENV.db,
openid_connect_signing_key: $ENV.jws}}' \
> '${cfg.statePath}/config/secrets.yml'
)