Explain Gitlab::Middleware::Static
.
This commit is contained in:
parent
08874d2b51
commit
6945f4a299
1 changed files with 5 additions and 0 deletions
|
@ -1,6 +1,11 @@
|
|||
begin
|
||||
app = Rails.application
|
||||
|
||||
# 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,
|
||||
|
|
Loading…
Reference in a new issue