Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于nginx配置防盗链后,部分图片生成缩略图会触发防盗链的限制 #7015

Open
4 tasks done
17lhf opened this issue Nov 9, 2024 · 1 comment
Open
4 tasks done
Labels
area/core Issues or PRs related to the Halo Core triage/needs-information Indicates an issue needs more information in order to work on it.

Comments

@17lhf
Copy link

17lhf commented Nov 9, 2024

前置条件

  • 已经在 issues 列表中搜索了相关问题。
  • 这是 Halo 项目本身存在的问题,如果是非项目本身的问题(如:安装部署问题),建议在 Discussions 提交。
  • 已经尝试过停用所有的插件,排除是插件导致的问题。
  • 如果是插件和主题的问题,请在对应的插件和主题仓库提交。

系统信息

使用的哪种方式运行?

Fat Jar

发生了什么?

我在nginx中对图片配置了防盗链的限制(域名此处为示例)。
Image

实际检查缩略图文件夹时,发现部分缩略图图片会触发这个防盗链的限制,从而缩略图变成了 “防盗链的图片”,原图是正常的。
暂时没找到为什么会触发这个问题,因为大部分图片是没问题的,只有少量图片会有这个问题。
部分缩略图出问题如下(我把文件夹都下载到windows本地进行查看):
Image

复现步骤

No response

相关日志输出

附加信息

No response

@ruibaby
Copy link
Member

ruibaby commented Nov 11, 2024

应该是从访问地址生成缩略图时,没有携带 Referer。

ping @guqing

/needs-information
/area core

@f2c-ci-robot f2c-ci-robot bot added the area/core Issues or PRs related to the Halo Core label Nov 11, 2024
@ruibaby ruibaby added the triage/needs-information Indicates an issue needs more information in order to work on it. label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core Issues or PRs related to the Halo Core triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

No branches or pull requests

2 participants