diff options
author | Daniel Hunsaker <danhunsaker@gmail.com> | 2018-03-06 13:59:35 -0700 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-03-06 21:59:35 +0100 |
commit | b725924f0a2254d6d7799f7558a9f6680ff6134f (patch) | |
tree | 44477bf3547a3e4855fdba13360bec1ca7f9f1a2 /nanobox | |
parent | 81cefc1913e89a3f659d9a2663f4006db94004cd (diff) |
[Nanobox] Tuning Update (#6660)
Various preformance and stability enhancements for instances deployed via Nanobox.
Diffstat (limited to 'nanobox')
-rw-r--r-- | nanobox/nginx-web.conf.erb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nanobox/nginx-web.conf.erb b/nanobox/nginx-web.conf.erb index a839f3036..797201eab 100644 --- a/nanobox/nginx-web.conf.erb +++ b/nanobox/nginx-web.conf.erb @@ -58,15 +58,21 @@ http { proxy_pass_header Server; proxy_pass http://rails; - proxy_buffering off; + proxy_buffering on; proxy_redirect off; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; + proxy_cache CACHE; + proxy_cache_valid 200 7d; + proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504; + tcp_nodelay on; } } + proxy_cache_path /data/var/cache/nginx levels=1:2 keys_zone=CACHE:10m inactive=7d max_size=1g; + error_page 500 501 502 503 504 /500.html; } |