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

域名和端口重定向 #26

Open
hu-lielie opened this issue Aug 21, 2024 · 6 comments
Open

域名和端口重定向 #26

hu-lielie opened this issue Aug 21, 2024 · 6 comments

Comments

@hu-lielie
Copy link

能否支持域名和端口都重定向的功能?
国内用户没有公网IP,使用STUN内网穿透运营商服务器,获取动态ipv4和动态端口,然后使用Cloudflare重定向功能近似活的公网IP体验。
实际使用场景: http://域名A ->重定向https://域名B:端口A -> 解析https://运营商动态公网IP:端口A ->STUN内网穿透 家庭路由器端口C->局域网服务器端口D

@Herbertzz
Copy link
Owner

Herbertzz commented Aug 22, 2024

这场景很难在开发环境中搭建,不好测试。

GPT说 添加 followRedirects: true, 可以自动跟踪重定向,你可以尝试下,可用的话,反馈下,加到下一版本中。

helper.js 71 行后面添加 followRedirects: true,, 示例参考:

    minioClient = new Minio.Client({
+     followRedirects: true,
      endPoint: config.endPoint,
      port: parseInt(config.port),
      useSSL: config.useSSL,
      accessKey: config.accessKey,
      secretKey: config.secretKey
    })

@Herbertzz
Copy link
Owner

请注意,自动跟踪重定向可能会导致安全问题,因为重定向的目标 URL 可能不可信。因此,在启用自动跟踪重定向之前,请确保您了解潜在的安全风险。

@hu-lielie
Copy link
Author

请注意,自动跟踪重定向可能会导致安全问题,因为重定向的目标 URL 可能不可信。因此,在启用自动跟踪重定向之前,请确保您了解潜在的安全风险。

好的我去尝试一下

@hu-lielie
Copy link
Author

不能用,卡在这里
2024-08-26 22:29:56 [PicGo INFO] Transforming... Current transformer is [path]
2024-08-26 22:29:56 [PicGo INFO] Before upload
2024-08-26 22:29:56 [PicGo INFO] Uploading... Current uploader is [smms]

@Herbertzz
Copy link
Owner

你选的 uploader 不是 minio 按

@Chever-John
Copy link

@hu-lielie “上传区” - “选择图床”,选择为 minio

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

3 participants