Rails ã® controller å´ class DownloadController < ApplicationController def action # èªè¨¼å¦ç ... resource_id = 2 resource = Resource.find resource_id response.header['X-Accel-Redirect'] = '/reproxy' response.header['X-Reproxy-URL'] = resource.data_url render nothing: true end end nginx ã® è¨å® upstream hoge_sock { server unix:/var/www/html/hoge/current/tmp/sockets/unicorn.sock fail_timeout=0; } server { l
{{#tags}}- {{label}}
{{/tags}}