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

多访问来源域名自动提取为当前站点url #2162

Open
mrzkj opened this issue Feb 2, 2025 · 0 comments
Open

多访问来源域名自动提取为当前站点url #2162

mrzkj opened this issue Feb 2, 2025 · 0 comments

Comments

@mrzkj
Copy link

mrzkj commented Feb 2, 2025

目前系统使用的站点URL域名是在后台管理界面中进行手动配置的(有且只能有一个),我的想法是能不能从当前访问请求中提取来源域名,作为站点URL(即可以存在多个站点域名),同时加以白名单控制,只有在白名单中的域名/IP信息才能成功访问。
因为我想实现IPV4/V6双栈,前端使用JS进行自动测试选择,如果V6测试通过则自动跳转到V6的访问链接上,否则自动使用V4进行访问,但是如果cloudreve只能绑定一个站点域名则无法实现V4、V6两个链接同时都可访问,即便是使用nginx反代实现都可访问,但是返回的下载链接中的url使用的也只能是系统中配置好的那一个站点URL,即下载流量也只能走V4、V6中的一个。或者,你们有什么更好的想法可以实现呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant