Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
76605174
Commit
76605174
authored
Jul 30, 2018
by
Marcel Amirault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated application settings with minor fixes
parent
daa1ac0f
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
102 additions
and
102 deletions
+102
-102
app/helpers/application_settings_helper.rb
app/helpers/application_settings_helper.rb
+6
-6
app/models/application_setting.rb
app/models/application_setting.rb
+21
-21
lib/api/settings.rb
lib/api/settings.rb
+75
-75
No files found.
app/helpers/application_settings_helper.rb
View file @
76605174
...
...
@@ -148,6 +148,7 @@ module ApplicationSettingsHelper
:after_sign_up_text
,
:akismet_api_key
,
:akismet_enabled
,
:allow_local_requests_from_hooks_and_services
,
:authorized_keys_enabled
,
:auto_devops_enabled
,
:auto_devops_domain
,
...
...
@@ -174,6 +175,7 @@ module ApplicationSettingsHelper
:ed25519_key_restriction
,
:email_author_in_body
,
:enabled_git_access_protocol
,
:enforce_terms
,
:gitaly_timeout_default
,
:gitaly_timeout_medium
,
:gitaly_timeout_fast
,
...
...
@@ -182,6 +184,7 @@ module ApplicationSettingsHelper
:help_page_hide_commercial_content
,
:help_page_support_url
,
:help_page_text
,
:hide_third_party_offers
,
:home_page_url
,
:housekeeping_bitmaps_enabled
,
:housekeeping_enabled
,
...
...
@@ -203,6 +206,7 @@ module ApplicationSettingsHelper
:metrics_port
,
:metrics_sample_interval
,
:metrics_timeout
,
:mirror_available
,
:pages_domain_verification_enabled
,
:password_authentication_enabled_for_web
,
:password_authentication_enabled_for_git
,
...
...
@@ -233,6 +237,7 @@ module ApplicationSettingsHelper
:sign_in_text
,
:signup_enabled
,
:terminal_max_session_time
,
:terms
,
:throttle_unauthenticated_enabled
,
:throttle_unauthenticated_requests_per_period
,
:throttle_unauthenticated_period_in_seconds
,
...
...
@@ -249,12 +254,7 @@ module ApplicationSettingsHelper
:usage_ping_enabled
,
:user_default_external
,
:user_oauth_applications
,
:version_check_enabled
,
:allow_local_requests_from_hooks_and_services
,
:hide_third_party_offers
,
:enforce_terms
,
:terms
,
:mirror_available
:version_check_enabled
]
end
end
app/models/application_setting.rb
View file @
76605174
...
...
@@ -227,26 +227,28 @@ class ApplicationSetting < ActiveRecord::Base
def
self
.
defaults
{
after_sign_up_text:
nil
,
allow_local_requests_from_hooks_and_services:
false
,
akismet_enabled:
false
,
authorized_keys_enabled:
true
,
# TODO default to false if the instance is configured to use AuthorizedKeysCommand
container_registry_token_expire_delay:
5
,
default_artifacts_expire_in:
'30 days'
,
default_branch_protection:
Settings
.
gitlab
[
'default_branch_protection'
],
default_group_visibility:
Settings
.
gitlab
.
default_projects_features
[
'visibility_level'
],
default_project_visibility:
Settings
.
gitlab
.
default_projects_features
[
'visibility_level'
],
default_projects_limit:
Settings
.
gitlab
[
'default_projects_limit'
],
default_snippet_visibility:
Settings
.
gitlab
.
default_projects_features
[
'visibility_level'
],
default_group_visibility:
Settings
.
gitlab
.
default_projects_features
[
'visibility_level'
],
disabled_oauth_sign_in_sources:
[],
domain_whitelist:
Settings
.
gitlab
[
'domain_whitelist'
],
dsa_key_restriction:
0
,
ecdsa_key_restriction:
0
,
ed25519_key_restriction:
0
,
gitaly_timeout_default:
55
,
gitaly_timeout_fast:
10
,
gitaly_timeout_medium:
30
,
gravatar_enabled:
Settings
.
gravatar
[
'enabled'
],
help_page_text:
nil
,
help_page_hide_commercial_content:
false
,
unique_ips_limit_per_user:
10
,
unique_ips_limit_time_window:
3600
,
unique_ips_limit_enabled:
false
,
help_page_text:
nil
,
hide_third_party_offers:
false
,
housekeeping_bitmaps_enabled:
true
,
housekeeping_enabled:
true
,
housekeeping_full_repack_period:
50
,
...
...
@@ -257,12 +259,14 @@ class ApplicationSetting < ActiveRecord::Base
koding_url:
nil
,
max_artifacts_size:
Settings
.
artifacts
[
'max_size'
],
max_attachment_size:
Settings
.
gitlab
[
'max_attachment_size'
],
password_authentication_enabled_for_web:
Settings
.
gitlab
[
'signin_enabled'
]
,
mirror_available:
true
,
password_authentication_enabled_for_git:
true
,
password_authentication_enabled_for_web:
Settings
.
gitlab
[
'signin_enabled'
],
performance_bar_allowed_group_id:
nil
,
rsa_key_restriction:
0
,
plantuml_enabled:
false
,
plantuml_url:
nil
,
polling_interval_multiplier:
1
,
project_export_enabled:
true
,
recaptcha_enabled:
false
,
repository_checks_enabled:
true
,
...
...
@@ -277,25 +281,21 @@ class ApplicationSetting < ActiveRecord::Base
sign_in_text:
nil
,
signup_enabled:
Settings
.
gitlab
[
'signup_enabled'
],
terminal_max_session_time:
0
,
throttle_unauthenticated_enabled:
false
,
throttle_unauthenticated_requests_per_period:
3600
,
throttle_unauthenticated_period_in_seconds:
3600
,
throttle_authenticated_web_enabled:
false
,
throttle_authenticated_web_requests_per_period:
7200
,
throttle_authenticated_web_period_in_seconds:
3600
,
throttle_authenticated_api_enabled:
false
,
throttle_authenticated_api_requests_per_period:
7200
,
throttle_authenticated_api_period_in_seconds:
3600
,
throttle_authenticated_api_requests_per_period:
7200
,
throttle_authenticated_web_enabled:
false
,
throttle_authenticated_web_period_in_seconds:
3600
,
throttle_authenticated_web_requests_per_period:
7200
,
throttle_unauthenticated_enabled:
false
,
throttle_unauthenticated_period_in_seconds:
3600
,
throttle_unauthenticated_requests_per_period:
3600
,
two_factor_grace_period:
48
,
user_default_external:
false
,
polling_interval_multiplier:
1
,
unique_ips_limit_enabled:
false
,
unique_ips_limit_per_user:
10
,
unique_ips_limit_time_window:
3600
,
usage_ping_enabled:
Settings
.
gitlab
[
'usage_ping_enabled'
],
gitaly_timeout_fast:
10
,
gitaly_timeout_medium:
30
,
gitaly_timeout_default:
55
,
allow_local_requests_from_hooks_and_services:
false
,
hide_third_party_offers:
false
,
mirror_available:
true
user_default_external:
false
}
end
...
...
lib/api/settings.rb
View file @
76605174
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment