Sha256: e8934d648a28d3b96e842a53d4323f90c8399f7dfe5f7abde57ff33a2c21107f

Contents?: true

Size: 1.14 KB

Versions: 15

Compression:

Stored size: 1.14 KB

Contents

{% if be_app_repo is defined %}
upstream unicorn {
  server unix:{{unicorn_sockfile}} fail_timeout=0;
}
{% endif %}

server {
  listen 80 default deferred;

  # server_name example.com;

{% if fe_app_repo is defined%}
  root {{ fe_app_path }}/dist;
{% else %}
  root {{ be_app_path }}/public;
{% endif %}

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

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

{% if be_app_repo is defined %}
  try_files $uri/index.html $uri @unicorn;
  location @unicorn {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_redirect off;
    proxy_pass http://unicorn;
  }
{% endif %}

  error_page 500 502 503 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

15 entries across 15 versions & 1 rubygems

Version Path
taperole-1.4.3 roles/nginx/templates/nginx_unicorn.j2
taperole-1.4.2 roles/nginx/templates/nginx_unicorn.j2
taperole-1.4.1 roles/nginx/templates/nginx_unicorn.j2
taperole-1.4.0 roles/nginx/templates/nginx_unicorn.j2
taperole-1.3.6 roles/nginx/templates/nginx_unicorn.j2
taperole-1.3.5 roles/nginx/templates/nginx_unicorn.j2
taperole-1.3.4 roles/nginx/templates/nginx_unicorn.j2
taperole-1.3.3 roles/nginx/templates/nginx_unicorn.j2
taperole-1.3.2 roles/nginx/templates/nginx_unicorn.j2
taperole-1.3.1 roles/nginx/templates/nginx_unicorn.j2
taperole-1.3.0 roles/nginx/templates/nginx_unicorn.j2
taperole-1.2.8 roles/nginx/templates/nginx_unicorn.j2
taperole-1.2.7 roles/nginx/templates/nginx_unicorn.j2
taperole-1.2.6 roles/nginx/templates/nginx_unicorn.j2
taperole-1.2.5 roles/nginx/templates/nginx_unicorn.j2