Cloudflare ssl和代理模式不工作



我在centos 8上用mariadb托管Apollo Graphql Node.js服务器。

它只托管API服务器。

所以我的客户端域名是从Namecheap购买的,并指向Cloudflare。所以我在Cloudflare DNS中添加了api A记录。

  1. 仅DNS模式

    http://api.domain.com:4000/graphql - it is working(I can query the data). 
    https://api.domain.com:4000/graphql - it is not working.
    
  2. 代理模式

    https://api.domain.com:4000/graphql - time out.   
    https://api.domain.com/graphql - ssl is working but could not reach 
    to hosting server.
    

如何配置才能工作https://api.domain.com/graphql无端口号的ssl

Cloudflare表示,使用端口号的呼叫无法在代理模式下工作。

在Cloudflare上,当配置为Cloudflare Spectrum应用程序时,端口4000可用于代理流量(如https请求(。

此处列出了支持的标准端口(无需Spectrum(。

或者,您可以将自己服务的配置端口从4000更改为上述链接中支持的端口之一。

最新更新