Sha256: d79606da9ac1925f0f7fc11a1fdcaec5f0ff4948b113972891d6993d79973b2d

Contents?: true

Size: 898 Bytes

Versions: 4

Compression:

Stored size: 898 Bytes

Contents

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

 server {
   listen 80;
   server_name *.<%= project_domain %> <%= project_domain %>;
   root <%= current_path %>/public;

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

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

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

   if (-f $document_root/system/maintenance.html) {
     return 503;
   }
   error_page 503 @maintenance;
   location @maintenance {
     rewrite  ^(.*)$  /system/maintenance.html last;
     break;
   }
 }

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
recipes_matic-1.1.0 lib/generators/recipes_matic/templates/config/deploy/recipes/templates/nginx.production.erb
recipes_matic-1.0.0 lib/generators/recipes_matic/templates/config/deploy/recipes/templates/nginx.production.erb
recipes_matic-0.2.0 lib/generators/recipes_matic/templates/config/deploy/recipes/templates/nginx.production.erb
recipes_matic-0.1.0 lib/generators/recipes_matic/templates/config/deploy/recipes/templates/nginx.production.erb