about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2019-09-13 13:36:00 +0200
committerGitHub <noreply@github.com>2019-09-13 13:36:00 +0200
commit1987bddea844399e79258bb4acc8b4d7f8cc7258 (patch)
tree095b0b4643c5e6aa48d73e8aea389a70b9ae9688 /nixos/modules
parentec3898181c1bcd9b3a7cfa95cf509a84c5b4f676 (diff)
parent4b6ba5b27c7ce81140d188d976fe1a08c3e5d3ee (diff)
downloadnixlib-1987bddea844399e79258bb4acc8b4d7f8cc7258.tar
nixlib-1987bddea844399e79258bb4acc8b4d7f8cc7258.tar.gz
nixlib-1987bddea844399e79258bb4acc8b4d7f8cc7258.tar.bz2
nixlib-1987bddea844399e79258bb4acc8b4d7f8cc7258.tar.lz
nixlib-1987bddea844399e79258bb4acc8b4d7f8cc7258.tar.xz
nixlib-1987bddea844399e79258bb4acc8b4d7f8cc7258.tar.zst
nixlib-1987bddea844399e79258bb4acc8b4d7f8cc7258.zip
Merge pull request #68649 from talyz/gitlab-fix
nixos/gitlab: Fix swap of secrets
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/misc/gitlab.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/misc/gitlab.nix b/nixos/modules/services/misc/gitlab.nix
index caef4ad4ea80..bcf0603c6f39 100644
--- a/nixos/modules/services/misc/gitlab.nix
+++ b/nixos/modules/services/misc/gitlab.nix
@@ -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'
         )