SECURITY: prevent direct download of backups
This commit is contained in:
parent
8ab32396a7
commit
acc62f2ec2
|
@ -58,6 +58,11 @@ server {
|
||||||
# further more etags are based on the file in nginx not sha of data
|
# further more etags are based on the file in nginx not sha of data
|
||||||
# use dates, it solves the problem fine even cross server
|
# use dates, it solves the problem fine even cross server
|
||||||
etag off;
|
etag off;
|
||||||
|
|
||||||
|
# prevent direct download of backups
|
||||||
|
location ^~ /backups/ {
|
||||||
|
internal;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root $public;
|
root $public;
|
||||||
|
|
Loading…
Reference in New Issue