Sha256: 07fd14997f83db79efc587d2f7b767991a3e508001266904deb9226303309835
Contents?: true
Size: 990 Bytes
Versions: 6
Compression:
Stored size: 990 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|system)/ { location ~ \.(js|css|otf|ttf|eot|woff|svg)$ { gzip_static on; # to serve pre-gzipped version } expires max; add_header Cache-Control public; break; } 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
6 entries across 6 versions & 1 rubygems