Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit b9fb37c

Browse files
vvelikodnyVitaly Velikodny
andauthored
Add SNI option for CDN resource/rule (#76)
* add SNI option for CDN resource/rule * update docs for CDN resource/rule * update README.md Co-authored-by: Vitaly Velikodny <[email protected]>
1 parent 20bf3b5 commit b9fb37c

File tree

7 files changed

+271
-389
lines changed

7 files changed

+271
-389
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
Terraform G-Core Labs Provider
22
------------------------------
3-
- Website: https://gcorelabs.com
3+
- Terraform provider page: https://registry.terraform.io/providers/G-Core/gcorelabs
44

55
<img src="https://gcorelabs.com/img/logo.svg" data-src="https://gcorelabs.com/img/logo.svg" alt="G-Core Labs" width="500px" width="500px">
66
====================================================================================
77

8-
- Website: https://www.terraform.io
98
- [![Gitter chat](https://badges.gitter.im/hashicorp-terraform/Lobby.png)](https://gitter.im/hashicorp-terraform/Lobby)
109
- Mailing list: [Google Groups](http://groups.google.com/group/terraform-tool)
1110

docs/resources/gcore_cdn_resource.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ Optional:
9696
- **host_header** (Block List, Max: 1) Specify the Host header that CDN servers use when request content from an origin server. Your server must be able to process requests with the chosen header. If the option is in NULL state Host Header value is taken from the CNAME field. (see [below for nested schema](#nestedblock--options--host_header))
9797
- **redirect_http_to_https** (Block List, Max: 1) Sets redirect from HTTP protocol to HTTPS for all resource requests. (see [below for nested schema](#nestedblock--options--redirect_http_to_https))
9898
- **rewrite** (Block List, Max: 1) (see [below for nested schema](#nestedblock--options--rewrite))
99+
- **sni** (Block List, Max: 1) (see [below for nested schema](#nestedblock--options--sni))
99100
- **webp** (Block List, Max: 1) (see [below for nested schema](#nestedblock--options--webp))
100101

101102
<a id="nestedblock--options--browser_cache_settings"></a>
@@ -179,6 +180,16 @@ Optional:
179180
- **flag** (String)
180181

181182

183+
<a id="nestedblock--options--sni"></a>
184+
### Nested Schema for `options.sni`
185+
186+
Optional:
187+
188+
- **custom_hostname** (String) Required to set custom hostname in case sni-type='custom'
189+
- **enabled** (Boolean)
190+
- **sni_type** (String) Available values 'dynamic' or 'custom'
191+
192+
182193
<a id="nestedblock--options--webp"></a>
183194
### Nested Schema for `options.webp`
184195

docs/resources/gcore_cdn_rule.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ Optional:
120120
- **host_header** (Block List, Max: 1) Specify the Host header that CDN servers use when request content from an origin server. Your server must be able to process requests with the chosen header. If the option is in NULL state Host Header value is taken from the CNAME field. (see [below for nested schema](#nestedblock--options--host_header))
121121
- **redirect_http_to_https** (Block List, Max: 1) Sets redirect from HTTP protocol to HTTPS for all resource requests. (see [below for nested schema](#nestedblock--options--redirect_http_to_https))
122122
- **rewrite** (Block List, Max: 1) (see [below for nested schema](#nestedblock--options--rewrite))
123+
- **sni** (Block List, Max: 1) (see [below for nested schema](#nestedblock--options--sni))
123124
- **webp** (Block List, Max: 1) (see [below for nested schema](#nestedblock--options--webp))
124125

125126
<a id="nestedblock--options--browser_cache_settings"></a>
@@ -171,9 +172,12 @@ Optional:
171172

172173
Required:
173174

174-
- **enabled** (Boolean)
175175
- **value** (String)
176176

177+
Optional:
178+
179+
- **enabled** (Boolean)
180+
177181

178182
<a id="nestedblock--options--redirect_http_to_https"></a>
179183
### Nested Schema for `options.redirect_http_to_https`
@@ -200,6 +204,16 @@ Optional:
200204
- **flag** (String)
201205

202206

207+
<a id="nestedblock--options--sni"></a>
208+
### Nested Schema for `options.sni`
209+
210+
Optional:
211+
212+
- **custom_hostname** (String) Required to set custom hostname in case sni-type='custom'
213+
- **enabled** (Boolean)
214+
- **sni_type** (String) Available values 'dynamic' or 'custom'
215+
216+
203217
<a id="nestedblock--options--webp"></a>
204218
### Nested Schema for `options.webp`
205219

0 commit comments

Comments
 (0)