Bring back the token

This commit is contained in:
Pawel Chojnacki 2017-05-19 17:30:51 +02:00
parent 138a5577a9
commit 6726922890

View file

@ -2,6 +2,7 @@ require 'prometheus/client/formats/text'
class MetricsController < ActionController::Base class MetricsController < ActionController::Base
protect_from_forgery with: :exception protect_from_forgery with: :exception
include RequiresHealthToken
CHECKS = [ CHECKS = [
Gitlab::HealthChecks::DbCheck, Gitlab::HealthChecks::DbCheck,