From 125c848ee3680eb510678ede01a8457597ab5de4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Tue, 1 Oct 2013 17:52:04 +0200 Subject: [PATCH] Update nginx.config.sample to allow custom CSS cf. http://meta.discourse.org/t/changing-css-in-customize-section-has-no-effect/10036 --- config/nginx.sample.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/nginx.sample.conf b/config/nginx.sample.conf index 41771cc2e..e13774c08 100644 --- a/config/nginx.sample.conf +++ b/config/nginx.sample.conf @@ -50,8 +50,11 @@ server { # return 403; #} - # let NGINX serve images + # custom CSS + location ~ /stylesheet-cache/ { try_files $uri =404; } + # images location ~* \.(gif|png|jpg|jpeg|bmp|tif|tiff)$ { try_files $uri =404; } + # thumbnails & optimized images location ~ /_optimized/ { try_files $uri =404; } # attachments must go through the rails application to get the right content-disposition header