gitlab.yml.example 3.15 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

randx's avatar
randx committed
11
#
Riyad Preukschas's avatar
Riyad Preukschas committed
12
# 1. GitLab app settings
randx's avatar
randx committed
13 14
# ==========================

Riyad Preukschas's avatar
Riyad Preukschas committed
15 16 17
## GitLab settings
gitlab:
  ## Web server settings
18 19 20
  host: localhost
  port: 80
  https: false
21

Riyad Preukschas's avatar
Riyad Preukschas committed
22 23 24
  ## Email settings
  # Email address used in the "From" field in mails sent by GitLab
  email_from: gitlab@localhost
25

Riyad Preukschas's avatar
Riyad Preukschas committed
26
  ## Project settings
27
  default_projects_limit: 10
Riyad Preukschas's avatar
Riyad Preukschas committed
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

randx's avatar
randx committed
35

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
36

37
#
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
38 39
# 2. Auth settings
# ==========================
Riyad Preukschas's avatar
Riyad Preukschas committed
40 41 42

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

Riyad Preukschas's avatar
Riyad Preukschas committed
52
## Omniauth settings
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
53
omniauth:
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
54
  # Enable ability for users
Riyad Preukschas's avatar
Riyad Preukschas committed
55
  # Allow logging in via Twitter, Google, etc. using Omniauth providers
56
  enabled: false
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
57

Riyad Preukschas's avatar
Riyad Preukschas committed
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.
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
61
  allow_single_sign_on: false
Riyad Preukschas's avatar
Riyad Preukschas committed
62
  # Locks down those users until they have been cleared by the admin (default: true)
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
63 64
  block_auto_created_users: true

Riyad Preukschas's avatar
Riyad Preukschas committed
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
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
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' }


Riyad Preukschas's avatar
Riyad Preukschas committed
79

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
80
#
Riyad Preukschas's avatar
Riyad Preukschas committed
81
# 3. Advanced settings
randx's avatar
randx committed
82 83
# ==========================

Riyad Preukschas's avatar
Riyad Preukschas committed
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
Riyad Preukschas's avatar
Riyad Preukschas committed
92
  repos_path: /home/git/repositories/
randx's avatar
randx committed
93
  hooks_path: /home/git/.gitolite/hooks/
Riyad Preukschas's avatar
Riyad Preukschas committed
94
  admin_key: gitlab
95 96
  upload_pack: true
  receive_pack: true
Riyad Preukschas's avatar
Riyad Preukschas committed
97 98 99
  ssh_user: git
  ssh_host: localhost
  # ssh_port: 22
Valeriy Sizov's avatar
Valeriy Sizov committed
100
  # config_file: gitolite.conf
101

Riyad Preukschas's avatar
Riyad Preukschas committed
102 103 104
## Git settings
# CAUTION!
# Use the default values unless you really know what you are doing
105
git:
Riyad Preukschas's avatar
Riyad Preukschas committed
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
Riyad Preukschas's avatar
Riyad Preukschas committed
109
  max_size: 5242880 # 5.megabytes
110
  # Git timeout to read commit, in seconds
Riyad Preukschas's avatar
Riyad Preukschas committed
111
  timeout: 10