Sha256: dab28966e5f1d94351d4c39c10da23a5a216d88e41fca2588fe9b6197aacd36d

Contents?: true

Size: 840 Bytes

Versions: 1

Compression:

Stored size: 840 Bytes

Contents

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

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

  location /nginx_status {
    stub_status on;
    access_log   off;
    allow 127.0.0.1;
    deny all;
  }

  location ^~ /assets/ {
    gzip_static on;
    expires max;
    add_header Cache-Control public;
  }

  try_files $uri/index.html $uri @backend_<%= fetch(:application) %>;
  location @backend_<%= fetch(:application) %> {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_redirect off;
    proxy_pass http://backend_<%= fetch(:application) %>;
  }

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capistrano-devops-0.0.4 lib/capistrano/devops/templates/nginx_rainbows.erb