From 0393a82d2628f7d4e75f317ea7013a9f4772e840 Mon Sep 17 00:00:00 2001 From: Bob Van Landuyt Date: Fri, 27 Jul 2018 12:36:55 +0200 Subject: Add instance statistics settings to API --- lib/api/settings.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/api') 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", -- cgit v1.2.1