forked from e621ng/e621ng
[Docker] Remove nginx referer check
This allows me to easily overwrite the storage manager base url and access the dev site from my phone with images successfully loading. Also remove some other unused stuff.
This commit is contained in:
parent
de726f46de
commit
26532478fd
@ -5,20 +5,7 @@ server {
|
||||
index index.html;
|
||||
access_log off;
|
||||
client_max_body_size 100m;
|
||||
location /stylesheets {
|
||||
expires max;
|
||||
break;
|
||||
}
|
||||
location /javascripts {
|
||||
expires max;
|
||||
break;
|
||||
}
|
||||
location /data {
|
||||
# if you want to block hotlinking
|
||||
valid_referers none ${NGINX_HOST} ~\.google\. ~\.bing\. ~\.yahoo\.;
|
||||
if ($invalid_referer) {
|
||||
return 403;
|
||||
}
|
||||
rewrite ^/data/sample/__.+?__(.+) /data/sample/$1 last;
|
||||
rewrite ^/data/__.+?__(.+) /data/$1 last;
|
||||
expires max;
|
||||
|
Loading…
Reference in New Issue
Block a user