Skip to content

Commit

Permalink
Add origin_max_http_version option to zone settings
Browse files Browse the repository at this point in the history
  • Loading branch information
reedloden committed Jul 5, 2022
1 parent b9dc7b5 commit 65635af
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/1755.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/cloudflare_zone_settings_override: Add support for `origin_max_http_version`
```
1 change: 1 addition & 0 deletions docs/resources/zone_settings_override.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ These can be specified as "on" or "off" string. Similar to boolean values, but h
- `h2_prioritization` - Allowed values: "on", "off" (default), "custom".
- `image_resizing` - Allowed values: "on", "off" (default), "open".
- `min_tls_version` - Allowed values: "1.0" (default), "1.1", "1.2", "1.3".
- `origin_max_http_version` - Allowed values: "1" (default on Enterprise), "2" (default)
- `polish` - Allowed values: "off" (default), "lossless", "lossy".
- `proxy_read_timeout` (default: "100")
- `pseudo_ipv4` - Allowed values: "off" (default), "add_header", "overwrite_header".
Expand Down
7 changes: 7 additions & 0 deletions internal/provider/schema_cloudflare_zone_settings_override.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,13 @@ var resourceCloudflareZoneSettingsSchema = map[string]*schema.Schema{
Computed: true,
},

"origin_max_http_version": {
Type: schema.TypeString,
Optional: true,
Computed: true,
ValidateFunc: validation.StringInSlice([]string{"1", "2"}, false),
},

"polish": {
Type: schema.TypeString,
Optional: true,
Expand Down
1 change: 1 addition & 0 deletions templates/resources/zone_settings_override.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ These can be specified as "on" or "off" string. Similar to boolean values, but h
- `h2_prioritization` - Allowed values: "on", "off" (default), "custom".
- `image_resizing` - Allowed values: "on", "off" (default), "open".
- `min_tls_version` - Allowed values: "1.0" (default), "1.1", "1.2", "1.3".
- `origin_max_http_version` - Allowed values: "1" (default on Enterprise), "2" (default)
- `polish` - Allowed values: "off" (default), "lossless", "lossy".
- `proxy_read_timeout` (default: "100")
- `pseudo_ipv4` - Allowed values: "off" (default), "add_header", "overwrite_header".
Expand Down

0 comments on commit 65635af

Please sign in to comment.