setted x_sendfile_header to 'X-Accel-Redirect'
This commit is contained in:
parent
8839c68219
commit
432ecf2175
|
@ -10,10 +10,10 @@ Rosa::Application.configure do
|
||||||
config.action_controller.perform_caching = true
|
config.action_controller.perform_caching = true
|
||||||
|
|
||||||
# Specifies the header that your server uses for sending files
|
# Specifies the header that your server uses for sending files
|
||||||
config.action_dispatch.x_sendfile_header = "X-Sendfile"
|
# config.action_dispatch.x_sendfile_header = "X-Sendfile"
|
||||||
|
|
||||||
# For nginx:
|
# For nginx:
|
||||||
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
|
config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
|
||||||
|
|
||||||
# If you have no front-end server that supports something like X-Sendfile,
|
# If you have no front-end server that supports something like X-Sendfile,
|
||||||
# just comment this out and Rails will serve the files
|
# just comment this out and Rails will serve the files
|
||||||
|
|
Loading…
Reference in New Issue