gitlab.yml.example 2.41 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
Sergey Linnik's avatar
Sergey Linnik committed
27 28
  # gravatar_url: "http://"       # default: http://www.gravatar.com/avatar/%{hash}?s=%{size}&d=mm
  # gravatar_ssl_url: "https://"  # default: https://secure.gravatar.com/avatar/%{hash}?s=%{size}&d=mm
randx's avatar
randx committed
29

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
30

31
#
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
32 33 34 35 36 37 38 39 40 41 42 43 44
# 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
45 46
  # Enable ability for users
  # to login via twitter, google ..
47
  enabled: false
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
48 49 50 51 52 53 54

  # 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
55 56 57 58 59 60 61 62 63 64 65 66
  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
67 68
# ==========================

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

# Git settings
# Use default values unless you understand it
git:
85
  path: /usr/bin/git
86 87 88 89 90
  # 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