Sha256: e2a930d6df07aca84bd0b1b8d749aa2a487c0c04ae50ec5424450725cb36d308

Contents?: true

Size: 1.02 KB

Versions: 2

Compression:

Stored size: 1.02 KB

Contents

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

server {
  listen 80 default_server deferred;
  server_name <%= fetch(:server_address) %>;

  root <%= fetch(:deploy_to) %>/current/public;

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

  try_files $uri $uri @<%= fetch(:application) %>;
  location @<%= fetch(:application) %> {
    proxy_set_header X-Forwarded-Proto $scheme;
    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) %>;
  }

  location /cable {
    proxy_pass http://<%= fetch(:application) %>;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
  }

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pixelforce_recipes-2.1 lib/pixelforce_recipes/templates/nginx_puma_config.erb
pixelforce_recipes-2.0 lib/pixelforce_recipes/templates/nginx_puma_config.erb