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 / {
|
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;
|
||||||
|
|
Loading…
Reference in a new issue