Skip to content

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

Description

@mekumiao

解决方案

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions