gitlab.yml.example 3.1 KB
Newer Older
1 2 3
# # # # # # # # # # # # # # # # # # 
# Gitlab application config file  #
# # # # # # # # # # # # # # # # # #
4 5 6 7 8 9
#
# 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
10

R
randx 已提交
11
#
R
Riyad Preukschas 已提交
12
# 1. GitLab app settings
R
randx 已提交
13 14
# ==========================

R
Riyad Preukschas 已提交
15 16 17
## GitLab settings
gitlab:
  ## Web server settings
18 19 20
  host: localhost
  port: 80
  https: false
21

R
Riyad Preukschas 已提交
22 23 24
  ## Email settings
  # Email address used in the "From" field in mails sent by GitLab
  email_from: gitlab@localhost
D
Dmitriy Zaporozhets 已提交
25

R
Riyad Preukschas 已提交
26
  ## Project settings
27
  default_projects_limit: 10
R
Riyad Preukschas 已提交
28 29 30 31 32 33 34

## 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

R
randx 已提交
35

D
Dmitriy Zaporozhets 已提交
36

37
#
D
Dmitriy Zaporozhets 已提交
38 39
# 2. Auth settings
# ==========================
R
Riyad Preukschas 已提交
40 41 42

## LDAP settings
ldap:
D
Dmitriy Zaporozhets 已提交
43 44 45 46 47
  enabled: false
  host: '_your_ldap_server'
  base: '_the_base_where_you_search_for_users'
  port: 636
  uid: 'sAMAccountName'
R
Riyad Preukschas 已提交
48
  method: 'ssl' # "ssl" or "plain"
D
Dmitriy Zaporozhets 已提交
49 50 51
  bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
  password: '_the_password_of_the_bind_user'

R
Riyad Preukschas 已提交
52
## Omniauth settings
D
Dmitriy Zaporozhets 已提交
53
omniauth:
D
Dmitriy Zaporozhets 已提交
54
  # Enable ability for users
R
Riyad Preukschas 已提交
55
  # Allow logging in via Twitter, Google, etc. using Omniauth providers
56
  enabled: false
D
Dmitriy Zaporozhets 已提交
57

R
Riyad Preukschas 已提交
58 59 60
  # CAUTION!
  # This allows users to login without having a user account first (default: false)
  # User accounts will be created automatically when authentication was successful.
D
Dmitriy Zaporozhets 已提交
61
  allow_single_sign_on: false
R
Riyad Preukschas 已提交
62
  # Locks down those users until they have been cleared by the admin (default: true)
D
Dmitriy Zaporozhets 已提交
63 64
  block_auto_created_users: true

R
Riyad Preukschas 已提交
65 66 67 68
  ## 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
D
Dmitriy Zaporozhets 已提交
69 70 71 72 73 74 75 76 77 78
  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' }


R
Riyad Preukschas 已提交
79

D
Dmitriy Zaporozhets 已提交
80
#
R
Riyad Preukschas 已提交
81
# 3. Advanced settings
R
randx 已提交
82 83
# ==========================

R
Riyad Preukschas 已提交
84 85 86 87 88 89 90
## 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:
91
  admin_uri: git@localhost:gitolite-admin
R
Riyad Preukschas 已提交
92
  repos_path: /home/git/repositories/
R
randx 已提交
93
  hooks_path: /home/git/.gitolite/hooks/
R
Riyad Preukschas 已提交
94
  admin_key: gitlab
95 96
  upload_pack: true
  receive_pack: true
R
Riyad Preukschas 已提交
97 98 99
  ssh_user: git
  ssh_host: localhost
  # ssh_port: 22
V
Valeriy Sizov 已提交
100
  # config_file: gitolite.conf
101

R
Riyad Preukschas 已提交
102 103 104
## Git settings
# CAUTION!
# Use the default values unless you really know what you are doing
105
git:
R
Riyad Preukschas 已提交
106
  bin_path: /usr/bin/git
107 108
  # Max size of git object like commit, in bytes
  # This value can be increased if you have a very large commits
R
Riyad Preukschas 已提交
109
  max_size: 5242880 # 5.megabytes
110
  # Git timeout to read commit, in seconds
R
Riyad Preukschas 已提交
111
  timeout: 10