Sha256: 99a67075f48f61f2643d696d4cffe8300cbc1f823258f857ec525cfbe583d6f2

Contents?: true

Size: 742 Bytes

Versions: 6

Compression:

Stored size: 742 Bytes

Contents

upstream <%= application %> {
  server unix:/tmp/<%= application %>.sock fail_timeout=0;
}

server {
  listen 80;
  server_name <%= server_address %>;
  root <%= deploy_to %>/current/public;

  try_files $uri/index.html $uri @<%= application %>;

  location ~* ^(/assets|/favicon.ico) {
    access_log        off;
    expires           max;
  }

  location @<%= application %> {
    proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header   Host $http_host;
    proxy_redirect     off;
    proxy_buffering    on;
    proxy_set_header   X-Real-IP        $remote_addr;
    proxy_pass         http://<%= application %>;
  }

  error_page 500 502 503 504 /500.html;
  client_max_body_size 1G;
  keepalive_timeout 10;
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pixelforce_recipes-1.3 lib/pixelforce_recipes/templates/nginx_config.erb
pixelforce_recipes-1.2 lib/pixelforce_recipes/templates/nginx_config.erb
pixelforce_recipes-1.1 lib/pixelforce_recipes/templates/nginx_config.erb
pixelforce_recipes-1.0 lib/pixelforce_recipes/templates/nginx_config.erb
pixelforce_recipes-0.9 lib/pixelforce_recipes/templates/nginx_config.erb
pixelforce_recipes-0.8 lib/pixelforce_recipes/templates/nginx_config.erb