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

作者在 ow.md 文件中提到的不支持http流量的解决方案 #7

Open
mekumiao opened this issue Oct 27, 2022 · 0 comments
Open

Comments

@mekumiao
Copy link

解决方案

  1. 请求时加一个 dsscheme 头,携带目标网站的scheme值(http或https)
  2. 在nginx反向代理的时候判断一下,代码如下
...
set $_scheme $scheme;
if ( $http_dsscheme = 'http' ){
    set $_scheme 'http';
}
...
proxy_pass $_scheme://$_host/$_uri;

一点小小的建议,希望可以起到作用

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