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