将加密模式设置为 Off (not recommended)(关闭,不推荐) 会将任何 HTTPS 请求重定向到明文 HTTP。
flowchart LR
accTitle: No SSL/TLS Encryption
accDescr: With an encryption mode of Off, your application does not encrypt traffic between the visitor and Cloudflare or between Cloudflare and your server.
A[Visitor] <--Unencrypted--> B((Cloudflare))<--Unencrypted--> C[(Origin server)]
Cloudflare 不建议将加密模式设置为 Off(关闭)。
要在仪表板中更改加密模式:
-
在 Cloudflare 仪表板中,前往 SSL/TLS Overview(SSL/TLS 概览) 页面。
Go to Overview ↗ -
选择一种加密模式。
要使用 API 调整加密模式,请发送 PATCH 请求,URI 路径中的设置名称为 ssl,value 参数设置为您所需的值(off、flexible、full、strict 或 origin_pull)。
将加密模式设置为 Off(关闭) 时,您的应用程序将:
将 SSL/TLS 加密模式设置为 Off(关闭) 时,您将看不到 Always Use HTTPS(始终使用 HTTPS) 或 Onion Routing(洋葱路由) 的选项。
当您的 SSL/TLS encryption mode 设置为 Off 或 Flexible 时,Authenticated Origin Pull 无法工作。