Sha256: 49c491bf2652dbbb54c5fcf8211cabd3b84ae0afa551dabdc7752df73eda286f

Contents?: true

Size: 1.14 KB

Versions: 17

Compression:

Stored size: 1.14 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 ^~ /packs/ {
    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 https;
    proxy_set_header X-Url-Scheme      https;
    proxy_set_header X-Forwarded-Ssl   on;
    proxy_set_header Front-End-Https   on;

    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

17 entries across 17 versions & 3 rubygems

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