Modify application settings
PUT
/v3/application/settingsModify application settings
请求参数
Determine if developers can push to master
The default project visibility
The default snippet visibility
The default group visibility
Selected levels cannot be used by non-admin users for projects or snippets. If the public level is restricted, user profiles are only visible to logged in users.
Enabled sources for code import during project creation. OmniAuth must be configured for GitHub, Bitbucket, and GitLab.com
Disable certain OAuth sign-in sources
Allow only the selected protocols to be used for Git access.
Flag indicating if the Gravatar service is enabled
The maximum number of personal projects
Maximum attachment size in MB
Session duration in minutes. GitLab restart is required to apply changes.
Allow users to register any application to use GitLab as an OAuth provider
Newly registered users will by default be external
Flag indicating if sign up is enabled
Send confirmation email on sign-up
ONLY users with e-mail addresses that match these domain(s) will be able to sign-up. Wildcards allowed. Use separate lines for multiple entries. Ex: domain.com, *.domain.com
Enable domain blacklist for sign ups
Users with e-mail addresses that match these domain(s) will NOT be able to sign-up. Wildcards allowed. Use separate lines for multiple entries. Ex: domain.com, *.domain.com
Text shown after sign up
Flag indicating if sign in is enabled
Require all users to setup Two-factor authentication
Amount of time (in hours) that users are allowed to skip forced configuration of two-factor authentication
We will redirect non-logged in users to this page
We will redirect users to this page after they sign out
The sign in text of the GitLab application
Custom text displayed on the help page
Enable shared runners for new projects
Shared runners text
Set the maximum file size each build's artifacts can have
Authorization token duration (minutes)
Enable the InfluxDB metrics
The InfluxDB host
The UDP port to use for connecting to InfluxDB
The amount of InfluxDB connections to open
The amount of seconds after which an InfluxDB connection will time out
A method call is only tracked when it takes longer to complete than the given amount of milliseconds.
The sampling interval in seconds
The amount of points to store in a single UDP packet
Enable Sidekiq Job Throttling
Choose which queues you wish to throttle
The factor by which the queues should be throttled. A value between 0.0 and 1.0, exclusive.
Helps prevent bots from creating accounts
Generate site key at http://www.google.com/recaptcha
Generate private key at http://www.google.com/recaptcha
Helps prevent bots from creating issues
Generate API key at http://www.akismet.com
Abuse reports will be sent to this address if it is set. Abuse reports are always available in the admin area.
Sentry is an error reporting and logging tool which is currently not shipped with GitLab, get it here: https://getsentry.com
Sentry Data Source Name
Storage paths for new projects
GitLab will periodically run 'git fsck' in all project and wiki repositories to look for silent disk corruption issues.
Enable Koding
The Koding team URL
Enable PlantUML
The PlantUML server URL
Let GitLab inform you when an update is available.
Some email servers do not support overriding the email sender name. Enable this option to include the name of the author of the issue, merge request or comment in the email body instead.
By default GitLab sends emails in HTML and plain text formats so mail clients can choose what format to use. Disable this option if you only want to send emails in plain text format.
Enable automatic repository housekeeping (git repack, git gc)
Creating pack file bitmaps makes housekeeping take a little longer but bitmaps should accelerate 'git clone' performance.
Number of Git pushes after which an incremental 'git repack' is run.
Number of Git pushes after which a full 'git repack' is run.
Number of Git pushes after which 'git gc' is run.
示例代码
返回响应
Modify application settings
{
"id": "string",
"default_projects_limit": "string",
"signup_enabled": "string",
"signin_enabled": "string",
"gravatar_enabled": "string",
"sign_in_text": "string",
"after_sign_up_text": "string",
"created_at": "string",
"updated_at": "string",
"home_page_url": "string",
"default_branch_protection": "string",
"restricted_visibility_levels": "string",
"max_attachment_size": "string",
"session_expire_delay": "string",
"default_project_visibility": "string",
"default_snippet_visibility": "string",
"default_group_visibility": "string",
"domain_whitelist": "string",
"domain_blacklist_enabled": "string",
"domain_blacklist": "string",
"user_oauth_applications": "string",
"after_sign_out_path": "string",
"container_registry_token_expire_delay": "string",
"repository_storage": "string",
"repository_storages": "string",
"koding_enabled": "string",
"koding_url": "string",
"plantuml_enabled": "string",
"plantuml_url": "string"
}