Merge branch 'master' into fixes/api
Conflicts: lib/api/projects.rb
This commit is contained in:
commit
61cfa2a7a6
146 changed files with 1562 additions and 859 deletions
|
@ -1,5 +1,5 @@
|
|||
# # # # # # # # # # # # # # # # # #
|
||||
# Gitlab application config file #
|
||||
# GitLab application config file #
|
||||
# # # # # # # # # # # # # # # # # #
|
||||
#
|
||||
# How to use:
|
||||
|
@ -37,9 +37,25 @@ production: &base
|
|||
# signup_enabled: true # default: false - Account passwords are not sent via the email if signup is enabled.
|
||||
# username_changing_enabled: false # default: true - User can change her username/namespace
|
||||
|
||||
|
||||
## External issues trackers
|
||||
issues_tracker:
|
||||
redmine:
|
||||
## If not nil, link 'Issues' on project page will be replaced with this
|
||||
## Use placeholders:
|
||||
## :project_id - GitLab project identifier
|
||||
## :issues_tracker_id - Project Name or Id in external issue tracker
|
||||
project_url: "http://redmine.sample/projects/:issues_tracker_id"
|
||||
## If not nil, links from /#\d/ entities from commit messages will replaced with this
|
||||
## Use placeholders:
|
||||
## :project_id - GitLab project identifier
|
||||
## :issues_tracker_id - Project Name or Id in external issue tracker
|
||||
## :id - Issue id (from commit messages)
|
||||
issues_url: "http://redmine.sample/issues/:id"
|
||||
|
||||
## Gravatar
|
||||
gravatar:
|
||||
enabled: true # Use user avatar images from Gravatar.com (default: true)
|
||||
enabled: true # Use user avatar image 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
|
||||
|
||||
|
@ -60,22 +76,21 @@ production: &base
|
|||
bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
|
||||
password: '_the_password_of_the_bind_user'
|
||||
|
||||
## Omniauth settings
|
||||
## OmniAuth settings
|
||||
omniauth:
|
||||
# Enable ability for users
|
||||
# Allow logging in via Twitter, Google, etc. using Omniauth providers
|
||||
# Allow login via Twitter, Google, etc. using OmniAuth providers
|
||||
enabled: false
|
||||
|
||||
# CAUTION!
|
||||
# This allows users to login without having a user account first (default: false)
|
||||
# This allows users to login without having a user account first (default: false).
|
||||
# User accounts will be created automatically when authentication was successful.
|
||||
allow_single_sign_on: false
|
||||
# Locks down those users until they have been cleared by the admin (default: true)
|
||||
# Locks down those users until they have been cleared by the admin (default: true).
|
||||
block_auto_created_users: true
|
||||
|
||||
## 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:
|
||||
# Uncomment the following lines and fill in the data of the auth provider you want to use
|
||||
# If your favorite auth provider is not listed you can use others:
|
||||
# see https://github.com/gitlabhq/gitlabhq/wiki/Using-Custom-Omniauth-Providers
|
||||
# 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.
|
||||
|
@ -114,7 +129,7 @@ production: &base
|
|||
upload_pack: true
|
||||
receive_pack: true
|
||||
|
||||
# If you use non-standart ssh port you need to specify it
|
||||
# If you use non-standard ssh port you need to specify it
|
||||
# ssh_port: 22
|
||||
|
||||
## Git settings
|
||||
|
@ -122,10 +137,10 @@ production: &base
|
|||
# Use the default values unless you really know what you are doing
|
||||
git:
|
||||
bin_path: /usr/bin/git
|
||||
# Max size of git object like commit, in bytes
|
||||
# This value can be increased if you have a very large commits
|
||||
# Max size of a git object (e.g. a commit), in bytes
|
||||
# This value can be increased if you have very large commits
|
||||
max_size: 5242880 # 5.megabytes
|
||||
# Git timeout to read commit, in seconds
|
||||
# Git timeout to read a commit, in seconds
|
||||
timeout: 10
|
||||
|
||||
development:
|
||||
|
@ -133,6 +148,10 @@ development:
|
|||
|
||||
test:
|
||||
<<: *base
|
||||
issues_tracker:
|
||||
redmine:
|
||||
project_url: "http://redmine/projects/:issues_tracker_id"
|
||||
issues_url: "http://redmine/:project_id/:issues_tracker_id/:id"
|
||||
|
||||
staging:
|
||||
<<: *base
|
||||
|
|
|
@ -42,6 +42,8 @@ Settings['omniauth'] ||= Settingslogic.new({})
|
|||
Settings.omniauth['enabled'] = false if Settings.omniauth['enabled'].nil?
|
||||
Settings.omniauth['providers'] ||= []
|
||||
|
||||
Settings['issues_tracker'] ||= {}
|
||||
|
||||
#
|
||||
# GitLab
|
||||
#
|
||||
|
@ -50,7 +52,7 @@ Settings.gitlab['default_projects_limit'] ||= 10
|
|||
Settings.gitlab['host'] ||= 'localhost'
|
||||
Settings.gitlab['https'] = false if Settings.gitlab['https'].nil?
|
||||
Settings.gitlab['port'] ||= Settings.gitlab.https ? 443 : 80
|
||||
Settings.gitlab['relative_url_root'] ||= ''
|
||||
Settings.gitlab['relative_url_root'] ||= ENV['RAILS_RELATIVE_URL_ROOT'] || ''
|
||||
Settings.gitlab['protocol'] ||= Settings.gitlab.https ? "https" : "http"
|
||||
Settings.gitlab['email_from'] ||= "gitlab@#{Settings.gitlab.host}"
|
||||
Settings.gitlab['support_email'] ||= Settings.gitlab.email_from
|
||||
|
|
|
@ -99,7 +99,7 @@ Devise.setup do |config|
|
|||
|
||||
# ==> Configuration for :validatable
|
||||
# Range for password length. Default is 6..128.
|
||||
# config.password_length = 6..128
|
||||
config.password_length = 6..128
|
||||
|
||||
# Email regex used to validate email formats. It simply asserts that
|
||||
# an one (and only one) @ exists in the given string. This is mainly
|
||||
|
|
|
@ -17,6 +17,7 @@ en:
|
|||
unauthenticated: 'You need to sign in before continuing.'
|
||||
unconfirmed: 'You have to confirm your account before continuing.'
|
||||
locked: 'Your account is locked.'
|
||||
not_found_in_database: 'Invalid email or password.'
|
||||
invalid: 'Invalid email or password.'
|
||||
invalid_token: 'Invalid authentication token.'
|
||||
timeout: 'Your session expired, please sign in again to continue.'
|
||||
|
|
|
@ -49,7 +49,7 @@ Gitlab::Application.routes.draw do
|
|||
#
|
||||
# Attachments serving
|
||||
#
|
||||
get 'files/:type/:id/:filename' => 'files#download', constraints: { id: /\d+/, type: /[a-z]+/, filename: /[a-zA-Z.0-9_\-\+]+/ }
|
||||
get 'files/:type/:id/:filename' => 'files#download', constraints: { id: /\d+/, type: /[a-z]+/, filename: /.+/ }
|
||||
|
||||
#
|
||||
# Admin Area
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue