mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 04:50:21 +00:00
nixos/gitlab: Introduce database pool size option
As well as a extraDatabaseConfig option.
(cherry picked from commit bd5ba09b79)
This commit is contained in:
committed by
Florian Klink
parent
6522d74e5d
commit
3a6c2a4bae
@@ -22,7 +22,8 @@ let
|
||||
password = cfg.databasePassword;
|
||||
username = cfg.databaseUsername;
|
||||
encoding = "utf8";
|
||||
};
|
||||
pool = cfg.databasePool;
|
||||
} // cfg.extraDatabaseConfig;
|
||||
};
|
||||
|
||||
gitalyToml = pkgs.writeText "gitaly.toml" ''
|
||||
@@ -253,6 +254,18 @@ in {
|
||||
description = "Gitlab database user.";
|
||||
};
|
||||
|
||||
databasePool = mkOption {
|
||||
type = types.int;
|
||||
default = 5;
|
||||
description = "Database connection pool size.";
|
||||
};
|
||||
|
||||
extraDatabaseConfig = mkOption {
|
||||
type = types.attrs;
|
||||
default = {};
|
||||
description = "Extra configuration in config/database.yml.";
|
||||
};
|
||||
|
||||
host = mkOption {
|
||||
type = types.str;
|
||||
default = config.networking.hostName;
|
||||
|
||||
Reference in New Issue
Block a user