Enable X-Accel-Redirect for nginx production use

This commit is contained in:
Christoph Haas 2016-06-16 12:11:00 +02:00
parent 458d1b668d
commit e446ec57b1

View file

@ -40,7 +40,7 @@ Debshots::Application.configure do
# Specifies the header that your server uses for sending files.
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true