diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-07-18 10:37:38 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-07-25 10:18:54 +0300 |
commit | bf114b31114e860e746f248661addcdde0133077 (patch) | |
tree | 88083f00940341e193c119bb955bc5c50fde0ee1 /lib/gitlab/path_regex.rb | |
parent | 1dcf799c76c5f2218ed7b1997389cd1e4ac81a17 (diff) |
Add contents of `public` as forbidden top-level routes
Diffstat (limited to 'lib/gitlab/path_regex.rb')
-rw-r--r-- | lib/gitlab/path_regex.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/gitlab/path_regex.rb b/lib/gitlab/path_regex.rb index c8b1b762940..894bd5efae5 100644 --- a/lib/gitlab/path_regex.rb +++ b/lib/gitlab/path_regex.rb @@ -14,14 +14,23 @@ module Gitlab TOP_LEVEL_ROUTES = %w[ - .well-known + 404.html + 422.html + 500.html + 502.html + 503.html abuse_reports admin api + apple-touch-icon-precomposed.png + apple-touch-icon.png assets autocomplete ci dashboard + deploy.html explore + favicon.ico files groups health_check @@ -39,6 +48,7 @@ module Gitlab s search sent_notifications + slash-command-logo.png snippets u unicorn_test |