gitlab.yml.example 2.21 KB
Newer Older
1
# # # # # # # # # # # # # # # # # #
2 3 4
# Gitlab application config file  #
# # # # # # # # # # # # # # # # # #

randx's avatar
randx committed
5 6 7 8
#
# 1. Common settings
# ==========================

9 10 11 12 13
# Web application specific settings
web:
  host: localhost
  port: 80
  https: false
14 15 16 17

# Email used for notification
# about new issues, comments
email:
18
  from: notify@localhost
19

randx's avatar
randx committed
20 21
# Application specific settings
# Like default project limit for user etc
22 23
app:
  default_projects_limit: 10
24
  # backup_path: "/vol/backups"   # default: Rails.root + backups/
25
  # backup_keep_time: 604800      # default: 0 (forever) (in seconds)
26
  # disable_gravatar: true        # default: false - Disable user avatars from Gravatar.com
randx's avatar
randx committed
27

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
28

29
#
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
30 31 32 33 34 35 36 37 38 39 40 41 42
# 2. Auth settings
# ==========================
ldap: 
  enabled: false
  host: '_your_ldap_server'
  base: '_the_base_where_you_search_for_users'
  port: 636
  uid: 'sAMAccountName'
  method: 'ssl' # plain
  bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
  password: '_the_password_of_the_bind_user'

omniauth:
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
43 44
  # Enable ability for users
  # to login via twitter, google ..
45
  enabled: false
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
46 47 48 49 50 51 52

  # IMPORTANT! 
  # It allows user to login without having user account
  allow_single_sign_on: false
  block_auto_created_users: true

  # Auth providers 
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
53 54 55 56 57 58 59 60 61 62 63 64
  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' }


#
# 3. Advanced settings:
randx's avatar
randx committed
65 66
# ==========================

James Earl Douglas's avatar
James Earl Douglas committed
67
# Git Hosting configuration
68
git_host:
69
  admin_uri: git@localhost:gitolite-admin
70
  base_path: /home/git/repositories/
randx's avatar
randx committed
71
  hooks_path: /home/git/.gitolite/hooks/
72
  gitolite_admin_key: gitlab 
73
  git_user: git
74 75
  upload_pack: true
  receive_pack: true
randx's avatar
randx committed
76
  # host: localhost
Valeriy Sizov's avatar
Valeriy Sizov committed
77
  # config_file: gitolite.conf
78 79 80 81 82
  # port: 22

# Git settings
# Use default values unless you understand it
git:
83
  path: /usr/bin/git
84 85 86 87 88
  # Max size of git object like commit, in bytes
  # This value can be increased if you have a very large commits
  git_max_size: 5242880 # 5.megabytes
  # Git timeout to read commit, in seconds
  git_timeout: 10