OpenListTeam / OpenListTeam/OpenList
[Feature] 允许自行配置或者从浏览器获取下载URL的基础域地址
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 24.7k
- Forks
- 2.3k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 36
Description
请确认以下事项
-
我已确认阅读并同意 AGPL-3.0 第15条 。
本程序不提供任何明示或暗示的担保,使用风险由您自行承担。 -
我已确认阅读并同意 AGPL-3.0 第16条 。
无论何种情况,版权持有人或其他分发者均不对使用本程序所造成的任何损失承担责任。 -
我确认我的描述清晰,语法礼貌,能帮助开发者快速定位问题,并符合社区规则。
-
我已确认阅读了OpenList文档。
-
我已确认没有重复的问题或讨论。
-
我认为此问题必须由
OpenList处理,而非第三方。 -
我已确认此功能尚未被实现。
-
我已确认此功能是合理的,且有普遍需求,并非我个人需要。
需求描述
目前,在我的多层CDN架构中,为了回源,我不得不在最上层CDN中使用中间CDN的域名。这样一来,当用户点击下载按钮时,显示的域名是中间CDN的域名,而不是正确的基础域。虽然通过复制链接时,URL会正确地指向基础域,但下载按钮的域名却显示错误。
为了提供更好的用户体验,我希望能增加一个配置选项,允许我们对下载按钮的行为进行自定义,以便:
- 保持当前的默认行为(即使用中间CDN的域名(应该是从请求头获取的? 我只是大概的看了一下源码))
- 手动指定正确的基础域
- 自动从浏览器获取正确的基础域
这个功能可以帮助避免由于域名错误导致的资源下载问题,并提升用户体验,尤其是在多层CDN/反向代理架构中。
实现思路
No response
附加信息
当前问题影响了资源下载的便捷性,尤其是在跨域名操作时,直接点击下载按钮会导致无法正确访问文件。
希望能够提供更灵活的配置选项,使得使用者能够根据自身架构的不同需求,选择合适的域名来源。
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how the download button constructs its URL and how the current request-header domain is used. Compare that behavior with copied links in a layered CDN setup; done means users can retain the default behavior or choose a manually configured or browser-derived base domain.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100