diff options
author | Andrew Newdigate <andrew@gitlab.com> | 2018-11-01 17:20:34 +0000 |
---|---|---|
committer | Andrew Newdigate <andrew@gitlab.com> | 2018-11-01 17:20:34 +0000 |
commit | 847c81b755b6b4146eb3fa3d5912f3d573739bd1 (patch) | |
tree | c9e2ee76ea0fc3d383b4649e855cb4b39c760731 /config/routes.rb | |
parent | 83dc8f1c666419434a23e467508061b6897fdfb6 (diff) | |
download | gitlab-ce-847c81b755b6b4146eb3fa3d5912f3d573739bd1.tar.gz |
Add documentation, secure routes, etc
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 10 |
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 |