3
0
Fork 0
forked from mirrors/nixpkgs

nixos/gitlab: Configure ActionCable

ActionCable is used to provide realtime updates in a few places,
mainly the issue sidebar.
This commit is contained in:
talyz 2022-10-04 17:42:43 +02:00 committed by Yureka
parent 9b3ff51c77
commit fae653deb4

View file

@ -96,6 +96,14 @@ let
redisConfig.production.url = cfg.redisUrl;
cableYml = yaml.generate "cable.yml" {
production = {
adapter = "redis";
url = cfg.redisUrl;
channel_prefix = "gitlab_production";
};
};
pagesArgs = [
"-pages-domain" gitlabConfig.production.pages.host
"-pages-root" "${gitlabConfig.production.shared.path}/pages"
@ -1211,6 +1219,7 @@ in {
cp -rf --no-preserve=mode ${cfg.packages.gitlab}/share/gitlab/config.dist/* ${cfg.statePath}/config
cp -rf --no-preserve=mode ${cfg.packages.gitlab}/share/gitlab/db/* ${cfg.statePath}/db
ln -sf ${extraGitlabRb} ${cfg.statePath}/config/initializers/extra-gitlab.rb
ln -sf ${cableYml} ${cfg.statePath}/config/cable.yml
${cfg.packages.gitlab-shell}/bin/install