Sha256: af73227ced7e474dc3981448c96a7eb259d7d5f6d4d6ba37484fa3b459781716

Contents?: true

Size: 937 Bytes

Versions: 20

Compression:

Stored size: 937 Bytes

Contents

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

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

  try_files $uri/index.html $uri @<%= fetch(:application) %>;

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

  location @<%= fetch(:application) %> {
    proxy_set_header   X-Forwarded-Proto $scheme;
    proxy_set_header   X-Forwarded-Ssl on;
    proxy_set_header   X-Forwarded-Port 443;
    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://<%= fetch(:application) %>;
  }

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

Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
pixelforce_kit-0.9 lib/pixelforce_kit/recipes/templates/nginx_config.erb
pixelforce_kit-4.0.2 lib/pixelforce_kit/recipes/templates/nginx_config.erb
pixelforce-kit-4.0.2 lib/pixelforce_kit/recipes/templates/nginx_config.erb
pixelforce_recipes-4.0 lib/recipes/templates/nginx_config.erb
pixelforce_recipes-3.9.2 lib/pixelforce_recipes/templates/nginx_config.erb
pixelforce_recipes-3.9.1 lib/pixelforce_recipes/templates/nginx_config.erb
pixelforce_recipes-3.9 lib/pixelforce_recipes/templates/nginx_config.erb
pixelforce_recipes-3.8 lib/pixelforce_recipes/templates/nginx_config.erb
pixelforce_recipes-3.7 lib/pixelforce_recipes/templates/nginx_config.erb
pixelforce_recipes-3.6 lib/pixelforce_recipes/templates/nginx_config.erb
pixelforce_recipes-3.5 lib/pixelforce_recipes/templates/nginx_config.erb
pixelforce_recipes-3.4 lib/pixelforce_recipes/templates/nginx_config.erb
pixelforce_recipes-3.3 lib/pixelforce_recipes/templates/nginx_config.erb
pixelforce_recipes-3.2 lib/pixelforce_recipes/templates/nginx_config.erb
pixelforce_recipes-3.1 lib/pixelforce_recipes/templates/nginx_config.erb
pixelforce_recipes-3.0 lib/pixelforce_recipes/templates/nginx_config.erb
pixelforce_recipes-2.4 lib/pixelforce_recipes/templates/nginx_config.erb
pixelforce_recipes-2.3 lib/pixelforce_recipes/templates/nginx_config.erb
pixelforce_recipes-2.1 lib/pixelforce_recipes/templates/nginx_config.erb
pixelforce_recipes-2.0 lib/pixelforce_recipes/templates/nginx_config.erb