Sha256: d564d9e63d10e189d8ff5fe297636ddd8a1523b73c5508331a3b9084df647460
Contents?: true
Size: 740 Bytes
Versions: 5
Compression:
Stored size: 740 Bytes
Contents
upstream <%= fetch(:application) %>_upstream { server unix:<%= shared_path.join('tmp/sockets/unicorn.sock') %> fail_timeout=0; } server { listen 80; server_name <%= fetch(:application) %>; error_log <%= shared_path.join('log/nginx-error.log') %>; access_log <%= shared_path.join('log/nginx-access.log') %>; root <%= current_path.join('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; proxy_redirect off; proxy_pass http://<%= fetch(:application) %>_upstream; } error_page 500 502 503 504 /500.html; location = /500.html { root <%= current_path.join('public') %>; } }
Version data entries
5 entries across 5 versions & 1 rubygems