diff --git a/README.md b/README.md
index 3c98bee..78db368 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@ The main goals of this module are to simplify the creation of resources in Cloud
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.2.0, < 1.3.0 |
-| [cloudflare](#requirement\_cloudflare) | >= 3.18.0 |
+| [cloudflare](#requirement\_cloudflare) | >= 3.19.0 |
## Supported Resources
diff --git a/USAGE.md b/USAGE.md
index 8a303d4..9c15ef3 100644
--- a/USAGE.md
+++ b/USAGE.md
@@ -4,7 +4,7 @@
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.2.0, < 1.3.0 |
-| [cloudflare](#requirement\_cloudflare) | >= 3.18.0 |
+| [cloudflare](#requirement\_cloudflare) | >= 3.19.0 |
## Modules
@@ -49,6 +49,7 @@ No modules.
| [opportunistic\_onion](#input\_opportunistic\_onion) | Add an Alt-Svc header to all legitimate requests from Tor, allowing the connection to use our onion services instead of exit nodes.
Available on the following plans: "free", "partners\_free", "pro", "partners\_pro", "business", "partners\_business", "enterprise", "partners\_enterprise".
Possible values: "on", "off". | `string` | `"off"` | no |
| [orange\_to\_orange](#input\_orange\_to\_orange) | Orange to Orange (O2O) allows zones on Cloudflare to CNAME to other zones also on Cloudflare.
Available on the following plans: "enterprise", "partners\_enterprise".
Possible values: "on", "off". | `string` | `"off"` | no |
| [origin\_error\_page\_pass\_thru](#input\_origin\_error\_page\_pass\_thru) | Cloudflare will proxy customer error pages on any 502,504 errors on origin server instead of showing a default Cloudflare error page. This does not apply to 522 errors.
Available on the following plans: "enterprise", "partners\_enterprise".
Possible values: "on", "off". | `string` | `"off"` | no |
+| [origin\_max\_http\_version](#input\_origin\_max\_http\_version) | The highest HTTP version Cloudflare will attempt to use with your origin. This setting allows Cloudflare to make HTTP/2 requests to your origin.
Note that you must contact customer support / account team to enable this setting before use, otherwise you will not be able to change it.
Available on the following plans: "free", "partners\_free", "pro", "partners\_pro", "business", "partners\_business", "enterprise", "partners\_enterprise".
Possible values: 1, 2. | `string` | `null` | no |
| [prefetch\_preload](#input\_prefetch\_preload) | Cloudflare will prefetch any URLs that are included in the response headers.
Available on the following plans: "enterprise", "partners\_enterprise".
Possible values: "on", "off". | `string` | `"off"` | no |
| [privacy\_pass](#input\_privacy\_pass) | Privacy Pass is a browser extension developed by the Privacy Pass Team to improve the browsing experience for your visitors. Enabling Privacy Pass will reduce the number of CAPTCHAs shown to your visitors.
Available on the following plans: "free", "partners\_free", "pro", "partners\_pro", "business", "partners\_business", "enterprise", "partners\_enterprise".
Possible values: "on", "off". | `string` | `"on"` | no |
| [response\_buffering](#input\_response\_buffering) | Enables or disables buffering of responses from the proxied server. Cloudflare may buffer the whole payload to deliver it at once to the client versus allowing it to be delivered in chunks. By default, the proxied server streams directly and is not buffered by Cloudflare.
Available on the following plans: "enterprise", "partners\_enterprise".
Possible values: "on", "off". | `string` | `"off"` | no |
diff --git a/main.tf b/main.tf
index 50773cd..4595b16 100644
--- a/main.tf
+++ b/main.tf
@@ -154,6 +154,7 @@ resource "cloudflare_zone_settings_override" "this" {
opportunistic_onion = var.opportunistic_onion
orange_to_orange = local.cloudflare_zone_settings_override_avail.orange_to_orange ? var.orange_to_orange : null
origin_error_page_pass_thru = local.cloudflare_zone_settings_override_avail.origin_error_page_pass_thru ? var.origin_error_page_pass_thru : null
+ origin_max_http_version = var.origin_max_http_version
# Since `polish` and `webp` are available on the same plan, it is not necessary to check if `webp` is available when `polish` is definitely available, so we can just use `var.webp` in the expression
polish = local.cloudflare_zone_settings_override_avail.polish ? (var.polish == null || var.polish == "off") && var.webp == "on" ? "lossless" : var.polish : null
prefetch_preload = local.cloudflare_zone_settings_override_avail.prefetch_preload ? var.prefetch_preload : null
diff --git a/variables.tf b/variables.tf
index 10f5755..7bd38aa 100644
--- a/variables.tf
+++ b/variables.tf
@@ -163,6 +163,14 @@ variable "origin_error_page_pass_thru" {
default = "off"
}
+# The default value of the setting is null, because in order to apply it, the setting must be activated through the customer support / account team and there is no way to know if it is available for change (`readonly_settings` output does not contain information about whether this setting is read-only)
+# Also, the default values for Enterprise plans and other plans are different
+variable "origin_max_http_version" {
+ type = string
+ description = "The highest HTTP version Cloudflare will attempt to use with your origin. This setting allows Cloudflare to make HTTP/2 requests to your origin.\nNote that you must contact customer support / account team to enable this setting before use, otherwise you will not be able to change it.\nAvailable on the following plans: \"free\", \"partners_free\", \"pro\", \"partners_pro\", \"business\", \"partners_business\", \"enterprise\", \"partners_enterprise\".\nPossible values: 1, 2."
+ default = null
+}
+
variable "prefetch_preload" {
type = string
description = "Cloudflare will prefetch any URLs that are included in the response headers.\nAvailable on the following plans: \"enterprise\", \"partners_enterprise\".\nPossible values: \"on\", \"off\"."
diff --git a/versions.tf b/versions.tf
index 046190f..3b7106b 100644
--- a/versions.tf
+++ b/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
- version = ">= 3.18.0"
+ version = ">= 3.19.0"
}
}
}