diff --git a/chef/cookbooks/common/templates/default/nginx.conf.erb b/chef/cookbooks/common/templates/default/nginx.conf.erb index c038d82c918b778e37f20f948d915629b642ac88..e5dee7afa8471801d4fb07bdaf464f31d37c6c37 100644 --- a/chef/cookbooks/common/templates/default/nginx.conf.erb +++ b/chef/cookbooks/common/templates/default/nginx.conf.erb @@ -88,6 +88,10 @@ http { ssl_certificate <%= @cert_location %>; ssl_certificate_key <%= @key_location %>; + location /assets { + expires 1d; + add_header Cache-Control public + } location / { proxy_set_header X-Real-IP $remote_addr;