This is set here, if I'm not mistaken:
https://github.com/gitlabhq/gitlabhq/blob/6-7-stable/app/controllers/application_controller.rb#L168