Skip to content

Commit

Permalink
Add opportunistic_onion zone setting support (#170)
Browse files Browse the repository at this point in the history
Updates the `zone_settings_override` resource to have support for
`opportunistic_onion`.

API links:

- https://api.cloudflare.com/#zone-settings-get-opportunistic-onion-setting
- https://api.cloudflare.com/#zone-settings-change-opportunistic-onion-setting
  • Loading branch information
jacobbednarz authored and patryk committed Nov 28, 2018
1 parent eda9add commit 908ec0d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cloudflare/resource_cloudflare_zone_settings_override.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,13 @@ var resourceCloudflareZoneSettingsSchema = map[string]*schema.Schema{
Computed: true,
},

"opportunistic_onion": {
Type: schema.TypeString,
ValidateFunc: validation.StringInSlice([]string{"on", "off"}, false),
Optional: true,
Computed: true,
},

"polish": {
Type: schema.TypeString,
Optional: true,
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/zone_settings_override.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ These can be specified as "on" or "off" string. Similar to boolean values, but h
* `ipv6`
* `mirage`
* `opportunistic_encryption`
* `opportunistic_onion`
* `origin_error_page_pass_thru`
* `prefetch_preload`
* `privacy_pass`
Expand Down

0 comments on commit 908ec0d

Please sign in to comment.