Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers/static_files.rb')
-rw-r--r--config/initializers/static_files.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/config/initializers/static_files.rb b/config/initializers/static_files.rb
deleted file mode 100644
index d9042c652bb..00000000000
--- a/config/initializers/static_files.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-app = Rails.application
-
-if app.config.serve_static_assets
- # The `ActionDispatch::Static` middleware intercepts requests for static files
- # by checking if they exist in the `/public` directory.
- # We're replacing it with our `Gitlab::Middleware::Static` that does the same,
- # except ignoring `/uploads`, letting those go through to the GitLab Rails app.
-
- app.config.middleware.swap(
- ActionDispatch::Static,
- Gitlab::Middleware::Static,
- app.paths["public"].first,
- app.config.static_cache_control
- )
-end