Sha256: c10eb8341e060d2bc6cd6506fce80b6103dab5979d89f440012c0d20a8c33fd8

Contents?: true

Size: 1.06 KB

Versions: 9

Compression:

Stored size: 1.06 KB

Contents

<%
  @path = "/etc/nginx/rubber/application.conf"
%>

server_name  <%= [ rubber_env.domain, rubber_env.web_aliases ].flatten.compact.join(" ") %>;
passenger_enabled on;
passenger_min_instances 1;
passenger_set_cgi_param HTTP_X_QUEUE_START "t=${msec}000";

root <%= Rubber.root + "/public" %>;

# this rewrites all the requests to the maintenance.html
# page if it exists in the doc root. This is for capistrano's
# disable web task
if (-f $document_root/system/maintenance.html)
{
  rewrite  ^(.*)$  /system/maintenance.html last;
  break;
}

error_page   500 502 503 504  /500.html;
location = /500.html
{
  root <%= Rubber.root + "/public" %>;
}
error_page 404  /404.html;
location = /404.html
{
  root <%= Rubber.root + "/public" %>;
}

<% if Rubber::Util.has_asset_pipeline? %>
# Give static assets a far-future header and serve the pre-compressed version of the asset
# instead of compressing on the fly.
location ~ ^/(assets)/ {
  gzip_static on;
  expires     max;
  add_header  Cache-Control public;
  add_header  Last-Modified "";
  add_header  ETag "";
  break;
}
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rubber-2.5.3 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.5.2 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.5.1 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.5.0 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.4.2 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.4.1 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.4.0 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.3.1 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf
rubber-2.3.0 templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf