mirror of https://github.com/mastodon/mastodon
Add proper error page for request timeouts
parent
34ff11c496
commit
5b12624847
@ -0,0 +1,5 @@
|
|||||||
|
- content_for :page_title do
|
||||||
|
Request timeout
|
||||||
|
|
||||||
|
- content_for :content do
|
||||||
|
It took too long to process your request. This might be a temporary server issue
|
@ -1,4 +1,6 @@
|
|||||||
|
Rack::Timeout::Logger.disable
|
||||||
|
Rack::Timeout.service_timeout = false
|
||||||
|
|
||||||
if Rails.env.production?
|
if Rails.env.production?
|
||||||
Rack::Timeout.service_timeout = 90
|
Rack::Timeout.service_timeout = 90
|
||||||
Rack::Timeout::Logger.disable
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue