diff --git a/config/nginx.conf b/config/nginx.conf index baf9e72..64aa64d 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -18,6 +18,24 @@ server { error_page 500 502 503 504 /500.html; client_max_body_size 4G; keepalive_timeout 10; + + location ~ ^/(assets)/ { + root /home/web/danielle_app/current/public; + gzip_static on; + expires max; + add_header Cache-Control public; + # access_log /dev/null; + } + + location ~ ^/(public_medias)/ { + root /home/web/danielle_app/current/public; + gzip_static on; + expires max; + add_header Cache-Control public; + # access_log /dev/null; + } + + }