git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/gitlab: fix secret generation

This line previously produced an error and an empty secret file.

commitc556c72a2efda33c6ef00ff376bd5596f6eca817 authorMárton Boros <martonboros@gmail.com> dateTue 24 Oct 2017, 00:07 (9 years ago) parent00c03e9
1 file changed+1−1
nixos/modules/services/misc/gitlab.nix+1−1
nixos/modules/services/misc/gitlab.nix+1−1
@@ -572,7 +572,7 @@ in {
572572 rm -rf ${cfg.statePath}/config ${cfg.statePath}/shell/hooks
573573 mkdir -p ${cfg.statePath}/config
574574
575− tr -dc A-Za-z0-9 < /dev/urandom | head -c 32 > ${cfg.statePath}/config/gitlab_shell_secret
575+ ${pkgs.openssl}/bin/openssl rand -hex 32 > ${cfg.statePath}/config/gitlab_shell_secret
576576
577577 # The uploads directory is hardcoded somewhere deep in rails. It is
578578 # symlinked in the gitlab package to /run/gitlab/uploads to make it