mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Merge pull request #1063 from Supermathie/sysadmin-docs
Comment out example anti-hotlinking rules
This commit is contained in:
commit
8b51b8c778
1 changed files with 7 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue