summary refs log tree commit diff
path: root/nixos/modules/services/misc/gitlab.xml
diff options
context:
space:
mode:
authorFranz Pletz <fpletz@fnordicwalking.de>2016-08-17 13:16:32 +0200
committerFranz Pletz <fpletz@fnordicwalking.de>2016-08-17 13:17:47 +0200
commit131bc22b84464443d8e88a2392e91feb79a97e28 (patch)
tree94ef0e12eb653fbe91cb0d73bd2b886315fd251c /nixos/modules/services/misc/gitlab.xml
parentcfb930c98515bb0c934784c78bfa869474bd3c28 (diff)
downloadnixpkgs-131bc22b84464443d8e88a2392e91feb79a97e28.tar
nixpkgs-131bc22b84464443d8e88a2392e91feb79a97e28.tar.gz
nixpkgs-131bc22b84464443d8e88a2392e91feb79a97e28.tar.bz2
nixpkgs-131bc22b84464443d8e88a2392e91feb79a97e28.tar.lz
nixpkgs-131bc22b84464443d8e88a2392e91feb79a97e28.tar.xz
nixpkgs-131bc22b84464443d8e88a2392e91feb79a97e28.tar.zst
nixpkgs-131bc22b84464443d8e88a2392e91feb79a97e28.zip
gitlab service: add option for db_key_base secret
Diffstat (limited to 'nixos/modules/services/misc/gitlab.xml')
-rw-r--r--nixos/modules/services/misc/gitlab.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/gitlab.xml b/nixos/modules/services/misc/gitlab.xml
index a8147b3a74f..83f715a50b4 100644
--- a/nixos/modules/services/misc/gitlab.xml
+++ b/nixos/modules/services/misc/gitlab.xml
@@ -62,6 +62,7 @@ services.gitlab = {
     address = "localhost";
     port = 25;
   };
+  secrets.db_key_base = "ei3eeP1ohsh0uu3ad4YeeMeeheengah3AiZee2ohl4Ooj5mie4Ohl0vishoghaes";
   extraConfig = {
     gitlab = {
       email_from = "gitlab-no-reply@example.com";
@@ -74,6 +75,12 @@ services.gitlab = {
 </programlisting>
 </para>
 
+<para>If you're setting up a new Gitlab instance, generate a new
+<literal>db_key_base</literal> secret to encrypt sensible data in the
+database. If you're restoring an existing Gitlab instance, you must
+specify the <literal>db_key_base</literal> secret from
+<literal>config/secrets.yml</literal> in your Gitlab state folder.</para>
+
 <para>Refer to <xref linkend="ch-options" /> for all available configuration
 options for the <literal>services.gitlab</literal> module.</para>