2012-12-20 20:16:42 +01:00
|
|
|
# # # # # # # # # # # # # # # # # #
|
|
|
|
# Gitlab application config file #
|
|
|
|
# # # # # # # # # # # # # # # # # #
|
2012-12-22 23:49:46 +01:00
|
|
|
#
|
|
|
|
# How to use:
|
|
|
|
# 1. copy file as gitlab.yml
|
|
|
|
# 2. Replace gitlab -> host with your domain
|
|
|
|
# 3. Replace gitolite -> ssh_host with your domain
|
|
|
|
# 4. Replace gitlab -> email_from
|
2012-07-02 20:51:48 +02:00
|
|
|
|
2012-07-02 20:59:48 +02:00
|
|
|
#
|
2012-12-15 01:45:44 +01:00
|
|
|
# 1. GitLab app settings
|
2012-07-02 20:59:48 +02:00
|
|
|
# ==========================
|
|
|
|
|
2012-12-15 01:45:44 +01:00
|
|
|
## GitLab settings
|
|
|
|
gitlab:
|
|
|
|
## Web server settings
|
2012-07-02 20:51:48 +02:00
|
|
|
host: localhost
|
|
|
|
port: 80
|
|
|
|
https: false
|
2013-01-16 23:54:48 +01:00
|
|
|
# Uncomment and customize to run in non-root path
|
|
|
|
# Note that ENV['RAILS_RELATIVE_URL_ROOT'] in config/unicorn.rb may need to be changed
|
2012-12-28 19:11:28 +01:00
|
|
|
# relative_url_root: /gitlab
|
2011-11-25 21:18:36 +01:00
|
|
|
|
2013-01-16 23:54:48 +01:00
|
|
|
# Uncomment and customize if you can't use the default user to run GitLab (default: 'gitlab')
|
|
|
|
# user: user123
|
|
|
|
|
2012-12-15 01:45:44 +01:00
|
|
|
## Email settings
|
|
|
|
# Email address used in the "From" field in mails sent by GitLab
|
|
|
|
email_from: gitlab@localhost
|
2012-03-31 14:59:06 +02:00
|
|
|
|
2013-01-22 10:04:02 +01:00
|
|
|
# Email address of your support contact (default: same as email_from)
|
2013-01-20 13:17:56 +01:00
|
|
|
support_email: support@localhost
|
|
|
|
|
2012-12-15 01:45:44 +01:00
|
|
|
## Project settings
|
2012-08-16 03:06:08 +02:00
|
|
|
default_projects_limit: 10
|
2012-11-06 14:30:48 +01:00
|
|
|
# signup_enabled: true # default: false - Account passwords are not sent via the email if signup is enabled.
|
2012-12-15 01:45:44 +01:00
|
|
|
|
|
|
|
## Gravatar
|
|
|
|
gravatar:
|
|
|
|
enabled: true # Use user avatar images from Gravatar.com (default: true)
|
|
|
|
# plain_url: "http://..." # default: http://www.gravatar.com/avatar/%{hash}?s=%{size}&d=mm
|
|
|
|
# ssl_url: "https://..." # default: https://secure.gravatar.com/avatar/%{hash}?s=%{size}&d=mm
|
|
|
|
|
2012-07-02 20:59:48 +02:00
|
|
|
|
2012-09-12 06:48:22 +02:00
|
|
|
|
2012-08-16 03:06:08 +02:00
|
|
|
#
|
2012-09-12 06:48:22 +02:00
|
|
|
# 2. Auth settings
|
|
|
|
# ==========================
|
2012-12-15 01:45:44 +01:00
|
|
|
|
|
|
|
## LDAP settings
|
|
|
|
ldap:
|
2012-09-12 06:48:22 +02:00
|
|
|
enabled: false
|
|
|
|
host: '_your_ldap_server'
|
|
|
|
base: '_the_base_where_you_search_for_users'
|
|
|
|
port: 636
|
|
|
|
uid: 'sAMAccountName'
|
2012-12-15 01:45:44 +01:00
|
|
|
method: 'ssl' # "ssl" or "plain"
|
2012-09-12 06:48:22 +02:00
|
|
|
bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
|
|
|
|
password: '_the_password_of_the_bind_user'
|
|
|
|
|
2012-12-15 01:45:44 +01:00
|
|
|
## Omniauth settings
|
2012-09-12 06:48:22 +02:00
|
|
|
omniauth:
|
2012-09-12 08:23:16 +02:00
|
|
|
# Enable ability for users
|
2012-12-15 01:45:44 +01:00
|
|
|
# Allow logging in via Twitter, Google, etc. using Omniauth providers
|
2012-09-12 17:56:44 +02:00
|
|
|
enabled: false
|
2012-09-12 08:23:16 +02:00
|
|
|
|
2012-12-15 01:45:44 +01:00
|
|
|
# CAUTION!
|
|
|
|
# This allows users to login without having a user account first (default: false)
|
|
|
|
# User accounts will be created automatically when authentication was successful.
|
2012-09-12 08:23:16 +02:00
|
|
|
allow_single_sign_on: false
|
2012-12-15 01:45:44 +01:00
|
|
|
# Locks down those users until they have been cleared by the admin (default: true)
|
2012-09-12 08:23:16 +02:00
|
|
|
block_auto_created_users: true
|
|
|
|
|
2012-12-15 01:45:44 +01:00
|
|
|
## Auth providers
|
|
|
|
# Uncomment the lines and fill in the data of the auth provider you want to use
|
|
|
|
# If your favorite auth provider is not listed you can user others:
|
|
|
|
# see https://github.com/gitlabhq/gitlabhq/wiki/Using-Custom-Omniauth-Providers
|
2012-12-23 16:49:11 +01:00
|
|
|
# The 'app_id' and 'app_secret' parameters are always passed as the first two
|
|
|
|
# arguments, followed by optional 'args' which can be either a hash or an array.
|
2012-09-12 06:48:22 +02:00
|
|
|
providers:
|
|
|
|
# - { name: 'google_oauth2', app_id: 'YOUR APP ID',
|
|
|
|
# app_secret: 'YOUR APP SECRET',
|
|
|
|
# args: { access_type: 'offline', approval_prompt: '' } }
|
|
|
|
# - { name: 'twitter', app_id: 'YOUR APP ID',
|
|
|
|
# app_secret: 'YOUR APP SECRET'}
|
|
|
|
# - { name: 'github', app_id: 'YOUR APP ID',
|
|
|
|
# app_secret: 'YOUR APP SECRET' }
|
|
|
|
|
|
|
|
|
2012-12-15 01:45:44 +01:00
|
|
|
|
2012-09-12 06:48:22 +02:00
|
|
|
#
|
2012-12-15 01:45:44 +01:00
|
|
|
# 3. Advanced settings
|
2012-07-02 20:59:48 +02:00
|
|
|
# ==========================
|
|
|
|
|
2013-01-16 12:30:31 +01:00
|
|
|
# GitLab Satellites
|
2013-01-16 23:54:48 +01:00
|
|
|
satellites:
|
|
|
|
# Relative paths are relative to Rails.root (default: tmp/repo_satellites/)
|
|
|
|
path: /home/gitlab/gitlab-satellites/
|
2013-01-16 12:30:31 +01:00
|
|
|
|
2012-12-15 01:45:44 +01:00
|
|
|
## Backup settings
|
|
|
|
backup:
|
|
|
|
path: "tmp/backups" # Relative paths are relative to Rails.root (default: tmp/backups/)
|
|
|
|
# keep_time: 604800 # default: 0 (forever) (in seconds)
|
|
|
|
|
|
|
|
## Gitolite settings
|
|
|
|
gitolite:
|
2011-12-04 00:08:08 +01:00
|
|
|
admin_uri: git@localhost:gitolite-admin
|
2013-01-07 19:39:15 +01:00
|
|
|
# repos_path must not be a symlink
|
2012-12-15 01:45:44 +01:00
|
|
|
repos_path: /home/git/repositories/
|
2012-08-29 01:03:04 +02:00
|
|
|
hooks_path: /home/git/.gitolite/hooks/
|
2012-12-15 01:45:44 +01:00
|
|
|
admin_key: gitlab
|
2012-06-29 05:30:31 +02:00
|
|
|
upload_pack: true
|
|
|
|
receive_pack: true
|
2012-12-15 01:45:44 +01:00
|
|
|
ssh_user: git
|
|
|
|
ssh_host: localhost
|
|
|
|
# ssh_port: 22
|
2012-11-06 23:47:33 +01:00
|
|
|
# config_file: gitolite.conf
|
2011-11-25 21:18:36 +01:00
|
|
|
|
2013-01-16 23:54:48 +01:00
|
|
|
# Uncomment and customize if you can't use the default group to own the repositories and run Gitolite (default: same as the 'ssh_user' above)
|
|
|
|
# owner_group: group123
|
|
|
|
|
2012-12-15 01:45:44 +01:00
|
|
|
## Git settings
|
|
|
|
# CAUTION!
|
|
|
|
# Use the default values unless you really know what you are doing
|
2011-11-25 21:18:36 +01:00
|
|
|
git:
|
2012-12-15 01:45:44 +01:00
|
|
|
bin_path: /usr/bin/git
|
2011-11-25 21:18:36 +01:00
|
|
|
# Max size of git object like commit, in bytes
|
|
|
|
# This value can be increased if you have a very large commits
|
2012-12-15 01:45:44 +01:00
|
|
|
max_size: 5242880 # 5.megabytes
|
2011-11-25 21:18:36 +01:00
|
|
|
# Git timeout to read commit, in seconds
|
2012-12-15 01:45:44 +01:00
|
|
|
timeout: 10
|