gitlab-org--gitlab-foss/config
2022-03-31 06:08:34 +00:00
..
environments Add latest changes from gitlab-org/gitlab@master 2022-01-11 12:14:06 +00:00
events Add latest changes from gitlab-org/gitlab@master 2022-03-17 00:07:59 +00:00
feature_flags Add latest changes from gitlab-org/gitlab@master 2022-03-31 06:08:34 +00:00
helpers Add latest changes from gitlab-org/gitlab@master 2022-03-03 18:19:46 +00:00
initializers Add latest changes from gitlab-org/gitlab@master 2022-03-29 00:09:12 +00:00
initializers_before_autoloader Add latest changes from gitlab-org/gitlab@master 2022-03-31 06:08:34 +00:00
knative
locales Add latest changes from gitlab-org/gitlab@master 2022-01-19 12:17:41 +00:00
metrics Add latest changes from gitlab-org/gitlab@master 2022-03-31 06:08:34 +00:00
plugins Add latest changes from gitlab-org/gitlab@master 2021-11-08 15:13:35 +00:00
prometheus
routes Add latest changes from gitlab-org/gitlab@master 2022-03-22 18:08:29 +00:00
apollo.config.js Add latest changes from gitlab-org/gitlab@master 2021-12-02 15:10:48 +00:00
application.rb Add latest changes from gitlab-org/gitlab@master 2022-03-28 18:07:56 +00:00
boot.rb Add latest changes from gitlab-org/gitlab@master 2021-11-03 06:10:20 +00:00
bullet.yml
bundler_setup.rb
cable.yml.example
database.yml.decomposed-postgresql Add latest changes from gitlab-org/gitlab@master 2022-03-18 03:07:42 +00:00
database.yml.env
database.yml.postgresql
database_geo.yml.postgresql
dependency_decisions.yml Add latest changes from gitlab-org/gitlab@master 2022-02-24 21:15:17 +00:00
environment.rb
feature_categories.yml Add latest changes from gitlab-org/gitlab@master 2022-03-28 12:07:26 +00:00
gitlab.yml.example Add latest changes from gitlab-org/gitlab@master 2022-03-24 18:07:52 +00:00
gitlab_loose_foreign_keys.yml Add latest changes from gitlab-org/gitlab@master 2022-03-18 12:07:43 +00:00
jsdocs.config.js
known_invalid_graphql_queries.yml Add latest changes from gitlab-org/gitlab@master 2021-11-10 09:13:03 +00:00
license_finder.yml
mail_room.yml Add latest changes from gitlab-org/gitlab@master 2022-03-01 09:12:47 +00:00
no_todos_messages.yml
object_store_settings.rb Add latest changes from gitlab-org/gitlab@master 2022-01-13 21:14:07 +00:00
pseudonymizer.yml Add latest changes from gitlab-org/gitlab@master 2021-09-15 21:11:12 +00:00
puma.example.development.rb
puma.rb.example
README.md Add latest changes from gitlab-org/gitlab@master 2021-10-15 15:10:09 +00:00
resque.yml.example
routes.rb Add latest changes from gitlab-org/gitlab@master 2022-03-29 15:09:53 +00:00
secrets.yml.example
settings.rb
sidekiq.yml.example
sidekiq_queues.yml Add latest changes from gitlab-org/gitlab@master 2022-03-30 00:09:03 +00:00
smime_signature_settings.rb
spring.rb
storage.yml
webpack.config.js Add latest changes from gitlab-org/gitlab@master 2022-03-22 15:07:25 +00:00
webpack.vendor.config.js Add latest changes from gitlab-org/gitlab@master 2022-03-22 15:07:25 +00:00

Configuration files Documentation

Note that most configuration files (config/*.*) committed into gitlab-foss will not be used for omnibus-gitlab. Configuration files committed into gitlab-foss are only used for development.

gitlab.yml

You can find most of the GitLab configuration settings here.

mail_room.yml

This file is actually an YML wrapped inside an ERB file to enable templated values to be specified from gitlab.yml. mail_room loads this file first as an ERB file and then loads the resulting YML as its configuration.

resque.yml

This file is called resque.yml for historical reasons. We are NOT using Resque at the moment. It is used to specify Redis configuration values when a single database instance of Redis is desired.

Advanced Redis configuration files

In more advanced configurations of Redis key-value storage, it is desirable to separate the keys by lifecycle and intended use to ease provisioning and management of scalable Redis clusters.

These settings provide routing and other configuration data (such as sentinel, persistence policies, and other Redis customization) for connections to Redis single instances, Redis sentinel, and Redis clusters.

If desired, the routing URL provided by these settings can be used with:

  1. Unix Socket
    1. named socket for each Redis instance desired.
    2. database number for each Redis instance desired.
  2. TCP Socket
    1. host name or IP for each Redis instance desired
    2. TCP port number for each Redis instance desired
    3. database number for each Redis instance desired

Example URL attribute formats for GitLab Redis .yml configuration files

  • Unix Socket, default Redis database (0)
    • url: unix:/path/to/redis.sock
    • url: unix:/path/to/redis.sock?db=
  • Unix Socket, Redis database 44
    • url: unix:/path/to/redis.sock?db=44
    • url: unix:/path/to/redis.sock?extra=foo&db=44
  • TCP Socket for Redis on localhost, port 6379, database 33
    • url: redis://:mynewpassword@localhost:6379/33
  • TCP Socket for Redis on remote host myserver, port 6379, database 33
    • url: redis://:mynewpassword@myserver:6379/33

Available configuration files

The Redis instances that can be configured are described in the table below. The order of precedence for configuration is described below, where $NAME and $FALLBACK_NAME are the upper-cased instance names from the table, and $name and $fallback_name are the lower-cased versions:

  1. The configuration file pointed to by the GITLAB_REDIS_$NAME_CONFIG_FILE environment variable.
  2. The configuration file redis.$name.yml.
  3. If a fallback instance is available, the configuration file redis.$fallback_name.yml.
  4. The configuration file pointed to by the GITLAB_REDIS_CONFIG_FILE environment variable.
  5. The configuration file resque.yml.

An example configuration file for Redis is in this directory under the name resque.yml.example.

Name Fallback instance Purpose
cache Volatile non-persistent data
queues Background job processing queues
shared_state Persistent application state
trace_chunks shared_state CI trace chunks
rate_limiting cache Rate limiting state
sessions shared_state Sessions

If no configuration is found, or no URL is found in the configuration file, the default URL used is:

  1. redis://localhost:6380 for cache.
  2. redis://localhost:6381 for queues.
  3. redis://localhost:6382 for shared_state.
  4. The URL from the fallback instance for all other instances.