diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-07-27 13:36:55 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-07-27 16:54:29 +0300 |
commit | 0393a82d2628f7d4e75f317ea7013a9f4772e840 (patch) | |
tree | d942d554485780ed0d45ec8b65541d3c654e6677 /lib/api | |
parent | 802ca4ff65f04f8741565288fbc1e89bb29db572 (diff) |
Add instance statistics settings to API
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/settings.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/settings.rb b/lib/api/settings.rb index 1ca7d23203b..19d5e66c77e 100644 --- a/lib/api/settings.rb +++ b/lib/api/settings.rb @@ -130,6 +130,7 @@ module API optional :gitaly_timeout_medium, type: Integer, desc: 'Medium Gitaly timeout, in seconds. Set to 0 to disable timeouts.' optional :gitaly_timeout_fast, type: Integer, desc: 'Gitaly fast operation timeout, in seconds. Set to 0 to disable timeouts.' optional :usage_ping_enabled, type: Boolean, desc: 'Every week GitLab will report license usage back to GitLab, Inc.' + optional :instance_statistics_visibility_private, type: Boolean, desc: 'When set to `true` Instance statistics will only be available to admins' ApplicationSetting::SUPPORTED_KEY_TYPES.each do |type| optional :"#{type}_key_restriction", |