ssl - Cloudflare - Terraform - 启用 SSL 完全加密

标签 ssl terraform cloudflare

我想在整个 Cloudflare 区域上启用 SSL 完全严格的加密。

从 Cloudflare 界面,我可以在“myzone-something”>“SSL/TLS”>“概述”>“完全严格”中执行此操作。

虽然我可以使用 Terraform 创建单页面规则来启用 SSL 模式 ( https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/page_rule ),但我想知道是否有任何方法可以使用 Terraform 在区域级别直接设置它?

最佳答案

您需要使用cloudflare_zone_settings_override (Resource)并将“ssl”参数设置为“严格”。 该参数的可用值为:“off”、“flexible”、“full”、“strict”、“origin_pull”。

关于ssl - Cloudflare - Terraform - 启用 SSL 完全加密,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75931089/

相关文章:

python - django:使用 NGINX 的 SECURE_SSL_REDIRECT 应用程序崩溃

azure - 当我在 terraform 中运行 cidrsubnet 函数时,我得到 'prefix extension of 3 does not accommodate a subnet numbered 8' 。为什么是这样?

python - 在 python 上使用 cloudflare 保护连接到 websocket

wordpress - Woocommerce 产品导入 API 上传特色图片

ssl - 使用SubjectAltName 'OtherName"在 openSSL 中创建 CSR 时出错

asp.net - 如何在 IIS 中启用 https?

java - SSL Tomcat 配置

azure - 参数 "storage_connection_string"是必需的,但未找到定义

azure - 地形循环

node.js - Nginx 下载索引而不是提供它