From b725924f0a2254d6d7799f7558a9f6680ff6134f Mon Sep 17 00:00:00 2001 From: Daniel Hunsaker Date: Tue, 6 Mar 2018 13:59:35 -0700 Subject: [Nanobox] Tuning Update (#6660) Various preformance and stability enhancements for instances deployed via Nanobox. --- nanobox/nginx-web.conf.erb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'nanobox') 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; } -- cgit