diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2016-03-24 14:53:20 +0100 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2016-03-24 14:53:20 +0100 |
commit | 8f3e86d72c16294c8bcec8c9a3af86ec99d66ee8 (patch) | |
tree | b5e94a63915d1be0168831c2828da676a71ad11c | |
parent | 55f5a68f092cc64ae4782c0d7fbbf1d3d1ce6284 (diff) | |
download | gitlab-ce-8f3e86d72c16294c8bcec8c9a3af86ec99d66ee8.tar.gz |
Keep Grack::Auth in the routes for LFS only
-rw-r--r-- | config/routes.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index 47ab1a89b8d..021eab89c2a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -59,6 +59,9 @@ Rails.application.routes.draw do mount Sidekiq::Web, at: '/admin/sidekiq', as: :sidekiq end + # Enable Grack support (for LFS only) + mount Grack::AuthSpawner, at: '/', constraints: lambda { |request| /[-\/\w\.]+\.git\/(info\/lfs|gitlab-lfs)/.match(request.path_info) }, via: [:get, :post, :put] + # Help get 'help' => 'help#index' get 'help/:category/:file' => 'help#show', as: :help_page, constraints: { category: /.*/, file: /[^\/\.]+/ } |