Merge pull request #1063 from Supermathie/sysadmin-docs

Comment out example anti-hotlinking rules
This commit is contained in:
Jeff Atwood 2013-06-20 20:27:56 -07:00
commit 8b51b8c778

View file

@ -21,12 +21,13 @@ server {
location / { location / {
root /home/discourse/discourse/public; root /home/discourse/discourse/public;
location ~ \.(jpe?g|png|gif)$ { ## optional image anti-hotlinking rules
valid_referers none blocked mysite.com *.mysite.com; #location ~ \.(jpe?g|png|gif)$ {
if ($invalid_referer) { # valid_referers none blocked mysite.com *.mysite.com;
return 403; # if ($invalid_referer) {
} # return 403;
} # }
#}
location ~ ^/t\/[0-9]+\/[0-9]+\/avatar { location ~ ^/t\/[0-9]+\/[0-9]+\/avatar {
expires 1d; expires 1d;