summary refs log tree commit diff
path: root/nixos/modules/services/misc/gitlab.nix
Commit message (Collapse)AuthorAge
* nixos/gitlab: improve psql assertion messageYureka2021-07-12
|
* Merge pull request #126253 from mkg20001/fc-gitlabMaciej Krüger2021-07-06
|\
| * nixos/gitlab: add container registryMaciej Krüger2021-06-09
| |
| * nixos/gitlab: add extraEnv optionMaciej Krüger2021-06-08
| | | | | | | | | | This allows users to define custom environment variables for gitlab, without having to modify the service file directly
* | Merge master into staging-nextgithub-actions[bot]2021-06-25
|\ \
| * | nixos/gitlab: require at least postgresql 12Yureka2021-06-25
| | |
* | | Merge staging-next into staginggithub-actions[bot]2021-06-09
|\| |
| * | gitlab: Make sure the FOSS version isn't identified as EEtalyz2021-06-09
| |/
* / nixos/gitlab: set port type to `types.port`Daniel Nagy2021-05-30
|/
* nixos/gitlab: Use replace-secret to avoid leaking secretstalyz2021-05-19
| | | | | | | Using `replace-literal` to insert secrets leaks the secrets through the `replace-literal` process' `/proc/<pid>/cmdline` file. `replace-secret` solves this by reading the secret straight from the file instead, which also simplifies the code a bit.
* Merge pull request #118898 from talyz/gitlab-memory-bloatKim Lindberger2021-04-30
|\ | | | | nixos/gitlab: Add options to tame GitLab's memory usage somewhat
| * nixos/gitlab: Set MALLOC_ARENA_MAX to "2"talyz2021-04-10
| | | | | | | | | | | | This should reduce memory fragmentation drastically and is recommended by both the Puma and the Sidekiq author. It's also the default value for Ruby deployments on Heroku.
| * nixos/gitlab: Add Sidekiq MemoryKiller supporttalyz2021-04-10
| | | | | | | | | | | | Restart sidekiq automatically when it consumes too much memory. See https://docs.gitlab.com/ee/administration/operations/sidekiq_memory_killer.html for details.
| * nixos/gitlab: Add options to control puma worker and threads numberstalyz2021-04-10
| |
* | gitlab: Add patch for db_key_base length bug, fix descriptionstalyz2021-04-27
|/ | | | | | | | | | | | | The upstream recommended minimum length for db_key_base is 30 bytes, which our option descriptions repeated. Recently, however, upstream has, in many places, moved to using aes-256-gcm, which requires a key of exactly 32 bytes. To allow for shorter keys, the upstream code pads the key in some places. However, in many others, it just truncates the key if it's too long, leaving it too short if it was to begin with. This adds a patch that fixes this and updates the descriptions to recommend a key of at least 32 characters. See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/53602
* nixos/gitlab: do not set backup.upload by defaultMilan Pässler2021-04-07
|
* nixos/gitlab: Gitlab -> GitLabtalyz2021-03-30
|
* nixos/gitlab: Introduce automatic backup supporttalyz2021-03-30
| | | | | Add support for automatically backing up GitLab state, both locally and to remote locations.
* nixos/gitlab: add option for tls wrapper-mode smtp (#116801)Milan2021-03-20
|
* nixos/gitlab: Add `gitlab.target`talyz2021-02-26
| | | | | | | To make it easier to start and stop all GitLab services, introduce `gitlab.target` which wants all services (meaning they will start with it) and which all services are part of (meaning they will stop with it).
* nixos/gitlab: Make gitlab.service's PreStart into two new servicestalyz2021-02-26
| | | | | | | | | | | | | | | | Make the config initialization script run in gitlab.service's PreStart section into two new services, `gitlab-config.service` and `gitlab-db-config.service`. Other services can then depend on the config scripts they need instead of unnecessarily depending on `gitlab.service`. This makes the reason for the configured service dependencies much clearer and should also reduce the restart time of the `gitlab` service quite a lot, when triggered manually. Also, set up stricter service dependencies, using `bindsTo`, to ensure that if a service fails or is stopped, its dependants are also stopped. For example, if we're using the `postgresql` service and it's stopped, `gitlab.service` and `gitlab-sidekiq.service`, which depend on it to function, should also be stopped.
* nixos/gitlab: postgresql: Make PSQL a function, run as superUsertalyz2021-02-24
| | | | | | | | | A function is more appropriate for this use. See http://mywiki.wooledge.org/BashFAQ/050 for reference. Also, we don't need to run the service as root: since we essentially run all commands as `services.postgresql.superUser` anyway, the whole service can just run as that user instead.
* nixos/gitlab: Change default SMTP port, enable postfix only if usedtalyz2021-02-24
| | | | | | | | | Change the default SMTP port to `25`, to better match the default address `localhost`. This gets rid of some error outputs in the test, where it fails to connect to localhost:465. Also, don't enable postfix by default unless it's actually useful to us.
* nixos/gitlab: Switch from unicorn to pumatalyz2021-02-24
| | | | Puma is the new upstream default server since GitLab 13.
* nixos/gitlab: Clean up the config dir more thoroughlytalyz2021-02-24
| | | | | | | | | | | | | | | | This removes all the subdirectories in `config` on start. From one version of GitLab to the next, the files in the `config` directory changes. Since we're only overwriting the existing files with ones from the repo, cruft sometimes gets left behind, occationally causing issues. Ideally, all configuration put in the `config` directory is declared by NixOS options and we could just remove the whole directory on start, but I'm not sure if that's the case. It would also require a little bit of additional rework and testing. The subdirectories, however, should seldom contain user configuration and the ones that frequently does, `initializers`, is already removed on start.
* Fix typo in the GitLab smtp auth options docsJean-Paul Calderone2021-02-14
|
* gitAndTools: move everything to the top levelAlyssa Ross2021-01-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The comment at the top of git-and-tools/default.nix said: /* All git-relates tools live here, in a separate attribute set so that users * can get a fast overview over what's available. but unfortunately that hasn't actually held up in practice. Git-related packages have continued to be added to the top level, or into gitAndTools, or sometimes both, basically at random, so having gitAndTools is just confusing. In fact, until I looked as part of working on getting rid of gitAndTools, one program (ydiff) was packaged twice independently, once in gitAndTools and once at the top level (I fixed this in 98c34901969). So I think it's for the best if we move away from gitAndTools, and just put all the packages it previously contained at the top level. I've implemented this here by just making gitAndTools an alias for the top level -- this saves having loads of lines in aliases.nix. This means that people can keep referring to gitAndTools in their configuration, but it won't be allowed to be used within Nixpkgs, and it won't be presented to new users by e.g. nix search. The only other change here that I'm aware of is that appendToName "minimal" is not longer called on the default git package, because doing that would have necessitated having a private gitBase variable like before. I think it makes more sense not to do that anyway, and reserve the "minimal" suffix only for gitMinimal.
* nixos/gitlab: move custom_hooks_dir into gitaly config (#107174)Jeff Slight2020-12-26
|
* nixos/gitlab: use bindsTo instead of requires for gitalyMilan Pässler2020-11-26
|
* utillinux: rename to util-linuxGraham Christensen2020-11-24
|
* nixos/gitlab: start gitaly after gitlabMilan Pässler2020-11-21
|
* nixos/gitlab: add changes for gitlab 13.4.xJeff Slight2020-11-20
|
* Merge pull request #93426 from helsinki-systems/feat/gitlab-pagesFlorian Klink2020-10-11
|\ | | | | nixos/gitlab: Support pages
| * nixos/gitlab: Support pagesJanne Heß2020-09-01
| | | | | | | | Fixes #84525
* | Merge pull request #93424 from helsinki-systems/feat/gitlab-mailroomFlorian Klink2020-09-06
|\ \ | |/ |/| nixos/gitlab: Support incoming mail
| * nixos/gitlab: Support incoming mailJanne Heß2020-08-21
| | | | | | | | | | When incoming mails are enabled, an extra service is needed. Closes #36125.
* | Merge pull request #93425 from helsinki-systems/feat/gitlab-shell-configJörg Thalheim2020-08-21
|\ \ | |/ |/|
| * nixos/gitlab: Support extra config for shellJanne Heß2020-07-18
| |
* | Merge pull request #93358 from helsinki-systems/fix/gitlab-customrbFlorian Klink2020-08-15
|\ \ | | | | | | nixos/gitlab: Fix extra-gitlab.rb
| * | nixos/gitlab: Fix extra-gitlab.rbJanne Heß2020-07-17
| |/ | | | | | | | | | | | | Line 794 removes the entire directory, rendering the tmpfiles rule useless. cc @bgamari @talyz
* | nixos/gitlab: fix module after #94454Aaron Andersen2020-08-06
| |
* | Merge pull request #93423 from helsinki-systems/feat/gitlab-redis-urlFlorian Klink2020-07-22
|\ \ | | | | | | nixos/gitlab: Make redis URL configurable
| * | nixos/gitlab: Make redis URL configurableJanne Heß2020-07-18
| |/ | | | | | | We run Redis via Unix socket
* / nixos/gitlab: Drop sidekiq PID fileJanne Heß2020-07-18
|/ | | | | | | | | | > WARNING: PID file creation will be removed in Sidekiq 6.0, see #4045. Please use a proper process supervisor to start and manage your services Since NixOS uses a proper process supervisor AND does not use the PID file anywhere, we can just drop it to be upwards compatible and fix that warning.
* gitlab: 12.10.8 -> 13.0.3Robin Gloster2020-06-04
| | | | | | | | | https://about.gitlab.com/releases/2020/05/22/gitlab-13-0-released/ https://about.gitlab.com/releases/2020/05/27/security-release-13-0-1-released/ https://about.gitlab.com/releases/2020/05/29/gitlab-13-0-3-released/ The gitaly gitlab-shell config has moved into gitaly.toml. See https://gitlab.com/gitlab-org/gitaly/-/issues/2182 for more info.
* nixos/gitlab: use new structure.sqlMilan Pässler2020-05-19
| | | | According to https://gitlab.com/gitlab-org/gitlab/-/issues/211487
* nixos/gitlab: Fix services.gitlab.enableStartTLSAutotalyz2020-04-28
| | | | | | | 'toString false' results in an empty string, which, in this context, is a syntax error. Use boolToString instead. Fixes #86160
* treewide: use attrs instead of list for types.loaOf optionsrnhmjoj2020-01-06
|
* nixos/treewide: Move rename.nix imports to their respective modulesSilvan Mosberger2019-12-10
| | | | | | | | A centralized list for these renames is not good because: - It breaks disabledModules for modules that have a rename defined - Adding/removing renames for a module means having to find them in the central file - Merge conflicts due to multiple people editing the central file
* nixos/gitlab: Remove the old lib symlink in the state directorytalyz2019-10-28
| | | | | Also, remove the old and unused PermissionsStartOnly definition in the gitlab-workhorse systemd service.