nixos/gitlab: Make redis URL configurable
We run Redis via Unix socket
This commit is contained in:
parent
d7e20ee25e
commit
e9bf4ca80f
@ -71,7 +71,7 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
redisConfig.production.url = "redis://localhost:6379/";
|
redisConfig.production.url = cfg.redisUrl;
|
||||||
|
|
||||||
gitlabConfig = {
|
gitlabConfig = {
|
||||||
# These are the default settings from config/gitlab.example.yml
|
# These are the default settings from config/gitlab.example.yml
|
||||||
@ -311,6 +311,12 @@ in {
|
|||||||
description = "Extra configuration in config/database.yml.";
|
description = "Extra configuration in config/database.yml.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
redisUrl = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "redis://localhost:6379/";
|
||||||
|
description = "Redis URL for all GitLab services except gitlab-shell";
|
||||||
|
};
|
||||||
|
|
||||||
extraGitlabRb = mkOption {
|
extraGitlabRb = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "";
|
default = "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user