update nginx.sample.conf to take attachmetns into account

This commit is contained in:
Régis Hanol 2013-07-10 22:56:51 +02:00
parent ac41e94619
commit 6beb12e778
1 changed files with 3 additions and 3 deletions

View File

@ -21,8 +21,8 @@ server {
location / {
root /home/discourse/discourse/public;
## optional image anti-hotlinking rules
#location ~ \.(jpe?g|png|gif)$ {
## optional upload anti-hotlinking rules
#location ~ ^/uploads/ {
# valid_referers none blocked mysite.com *.mysite.com;
# if ($invalid_referer) {
# return 403;
@ -35,7 +35,7 @@ server {
add_header ETag "";
}
location ~ ^/assets/ {
location ~ ^/(assets|uploads)/ {
expires 1y;
add_header Cache-Control public;
add_header ETag "";