Sha256: be011149bd49190435dd34ff85283ab8a977e6909e345c40614812f661dd74aa

Contents?: true

Size: 880 Bytes

Versions: 4

Compression:

Stored size: 880 Bytes

Contents

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

 server {
   listen 80;
   server_name stage.<%= 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.staging.erb
recipes_matic-1.0.0 lib/generators/recipes_matic/templates/config/deploy/recipes/templates/nginx.staging.erb
recipes_matic-0.2.0 lib/generators/recipes_matic/templates/config/deploy/recipes/templates/nginx.staging.erb
recipes_matic-0.1.0 lib/generators/recipes_matic/templates/config/deploy/recipes/templates/nginx.staging.erb