Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Newdigate <andrew@gitlab.com>2018-11-01 20:20:34 +0300
committerAndrew Newdigate <andrew@gitlab.com>2018-11-01 20:20:34 +0300
commit847c81b755b6b4146eb3fa3d5912f3d573739bd1 (patch)
treec9e2ee76ea0fc3d383b4649e855cb4b39c760731 /config/routes.rb
parent83dc8f1c666419434a23e467508061b6897fdfb6 (diff)
Add documentation, secure routes, etc
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/config/routes.rb b/config/routes.rb
index d214356f3e9..d4c19a03ff8 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -83,10 +83,12 @@ Rails.application.routes.draw do
draw :operations
draw :instance_statistics
- get '/chaos/leakmem' => 'chaos#leakmem'
- get '/chaos/cpuspin' => 'chaos#cpuspin'
- get '/chaos/sleep' => 'chaos#sleep'
- get '/chaos/kill' => 'chaos#kill'
+ if ENV['GITLAB_ENABLE_CHAOS_ENDPOINTS']
+ get '/chaos/leakmem' => 'chaos#leakmem'
+ get '/chaos/cpuspin' => 'chaos#cpuspin'
+ get '/chaos/sleep' => 'chaos#sleep'
+ get '/chaos/kill' => 'chaos#kill'
+ end
end
draw :api