Sha256: dabe624f215c09cfcd2f65739451df84feb04165eec90d7431ab2ba4dcf1ad2c
Contents?: true
Size: 966 Bytes
Versions: 15
Compression:
Stored size: 966 Bytes
Contents
upstream <%= app_name %>-unicorn { server unix:/tmp/unicorn.<%= app_name %>.<%= app_env %>.sock fail_timeout=0; } server { listen <%= options[:listen] %>; server_name www.<%= app_host %>; rewrite ^(.*) http://<%= app_host %>$1 permanent; } server { listen <%= options[:listen] %>; server_name <%= app_host %>; root <%=app_path%>/public; location /assets { location ~ \.(js|css|otf|ttf|eot|woff|svg)$ { gzip_static on; # to serve pre-gzipped version } expires max; add_header Cache-Control public; } try_files $uri/index.html $uri.html $uri @app; location @app { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; add_header X-UA-Compatible IE=Edge,chrome=1; add_header imagetoolbar no; proxy_redirect off; proxy_pass http://<%= app_name %>-unicorn; } error_page 500 502 503 504 /500.html; client_max_body_size 4G; keepalive_timeout 10; }
Version data entries
15 entries across 15 versions & 1 rubygems