http://ip+ 端口/wwwapi/file/downDocument?fileID=ef73b502-e21b-4450-ad37-44c60ecdc16a&worksheetId=6947962de54b8e1c9a4bf21b&cid=Njk0Nzk2MmRlNTRiOGUxYzlhNGJmMjFlXzI=,一个这样的下载链接放到浏览器中直接可以下载,这个不合适,需要在 docker 下面的 nginx.conf 中怎么配禁掉,我添加了下面代理但不生效
location /wwwapi/file/downDocument {
if (http_referer = "") {
return 403;
}
set real_ip '';
if (http_x_real_ip) {
set real_ip http_x_real_ip;
}
if (http_x_real_ip = '') {
set real_ip remote_addr;
}
proxy_set_header X-Real-IP real_ip;
proxy_set_header Host http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://ip;
}