Commonly people configure GitLab via the gitlab.rb configuration file in the Omnibus package.
Commonly people configure GitLab via the `gitlab.rb` configuration file in the Omnibus package.
But if you prefer to use environment variables we allow that too.
But if you prefer to use environment variables we allow that too.
...
@@ -10,45 +10,45 @@ But if you prefer to use environment variables we allow that too.
...
@@ -10,45 +10,45 @@ But if you prefer to use environment variables we allow that too.
Variable | Type | Explanation
Variable | Type | Explanation
-------- | ---- | -----------
-------- | ---- | -----------
GITLAB_ROOT_PASSWORD | string | sets the password for the `root` user on installation
`GITLAB_ROOT_PASSWORD` | string | Sets the password for the `root` user on installation
GITLAB_HOST | url | hostname of the GitLab server includes http or https
`GITLAB_HOST` | url | Hostname of the GitLab server includes http or https
RAILS_ENV | production / development / staging / test | Rails environment
`RAILS_ENV` | production / development / staging / test | Rails environment
DATABASE_URL | url | For example: postgresql://localhost/blog_development?pool=5
`DATABASE_URL` | url | For example: postgresql://localhost/blog_development
GITLAB_EMAIL_FROM | email | Email address used in the "From" field in mails sent by GitLab
`GITLAB_EMAIL_FROM` | email | Email address used in the "From" field in mails sent by GitLab
GITLAB_EMAIL_DISPLAY_NAME | string | Name used in the "From" field in mails sent by GitLab
`GITLAB_EMAIL_DISPLAY_NAME` | string | Name used in the "From" field in mails sent by GitLab
GITLAB_EMAIL_REPLY_TO | email | Email address used in the "Reply-To" field in mails sent by GitLab
`GITLAB_EMAIL_REPLY_TO` | email | Email address used in the "Reply-To" field in mails sent by GitLab
GITLAB_UNICORN_MEMORY_MIN | integer | The minimum memory threshold (in bytes) for the Unicorn worker killer
`GITLAB_UNICORN_MEMORY_MIN` | integer | The minimum memory threshold (in bytes) for the Unicorn worker killer
GITLAB_UNICORN_MEMORY_MAX | integer | The maximum memory threshold (in bytes) for the Unicorn worker killer
`GITLAB_UNICORN_MEMORY_MAX` | integer | The maximum memory threshold (in bytes) for the Unicorn worker killer
## Complete database variables
## Complete database variables
As explained in the [Heroku documentation](https://devcenter.heroku.com/articles/rails-database-connection-behavior) the DATABASE_URL doesn't let you set:
The recommended way of specifying your database connection information is to set
the `DATABASE_URL` environment variable. This variable only holds connection
information (adapter, database, username, password, host and port), but not
behavior information (encoding, pool). If you don't want to use `DATABASE_URL`
and/or want to set database behavior information, you will have to: