mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
fixup! gitlab: 8.0.5 -> 8.5.0, service improvements
Some debugging and development leftovers.
This commit is contained in:
parent
bcfa59bf82
commit
3fd51a9ab2
@ -39,6 +39,7 @@ let
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
gitlabConfig = {
|
gitlabConfig = {
|
||||||
|
# These are the default settings from config/gitlab.example.yml
|
||||||
production = flip recursiveUpdate cfg.extraConfig {
|
production = flip recursiveUpdate cfg.extraConfig {
|
||||||
gitlab = {
|
gitlab = {
|
||||||
host = cfg.host;
|
host = cfg.host;
|
||||||
@ -52,7 +53,7 @@ let
|
|||||||
default_projects_features = {
|
default_projects_features = {
|
||||||
issues = true;
|
issues = true;
|
||||||
merge_requests = true;
|
merge_requests = true;
|
||||||
wiki = false;
|
wiki = true;
|
||||||
snippets = false;
|
snippets = false;
|
||||||
builds = true;
|
builds = true;
|
||||||
};
|
};
|
||||||
@ -241,7 +242,7 @@ in {
|
|||||||
|
|
||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
type = types.attrs;
|
type = types.attrs;
|
||||||
default = "";
|
default = {};
|
||||||
example = {
|
example = {
|
||||||
gitlab = {
|
gitlab = {
|
||||||
default_projects_features = {
|
default_projects_features = {
|
||||||
@ -348,7 +349,6 @@ in {
|
|||||||
gitAndTools.git
|
gitAndTools.git
|
||||||
openssh
|
openssh
|
||||||
nodejs
|
nodejs
|
||||||
sudo
|
|
||||||
];
|
];
|
||||||
preStart = ''
|
preStart = ''
|
||||||
mkdir -p ${cfg.backupPath}
|
mkdir -p ${cfg.backupPath}
|
||||||
@ -400,7 +400,7 @@ in {
|
|||||||
|
|
||||||
if [ "${cfg.databaseHost}" = "127.0.0.1" ]; then
|
if [ "${cfg.databaseHost}" = "127.0.0.1" ]; then
|
||||||
if ! test -e "${cfg.statePath}/db-created"; then
|
if ! test -e "${cfg.statePath}/db-created"; then
|
||||||
psql postgres -c "CREATE ROLE gitlab WITH LOGIN CREATEDB NOCREATEROLE NOCREATEUSER ENCRYPTED PASSWORD '${cfg.databasePassword}'"
|
psql postgres -c "CREATE ROLE gitlab WITH LOGIN NOCREATEDB NOCREATEROLE NOCREATEUSER ENCRYPTED PASSWORD '${cfg.databasePassword}'"
|
||||||
${config.services.postgresql.package}/bin/createdb --owner gitlab gitlab || true
|
${config.services.postgresql.package}/bin/createdb --owner gitlab gitlab || true
|
||||||
touch "${cfg.statePath}/db-created"
|
touch "${cfg.statePath}/db-created"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user