[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:
Earlopain 2022-12-24 14:32:31 +01:00
parent de726f46de
commit 26532478fd
No known key found for this signature in database
GPG Key ID: 6CFB948E15246897

View File

@ -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;