cdn add geofence feature (#1020)
* add geofencing attribute to "stackit_cdn_distribution"
This commit is contained in:
parent
87bc7415fc
commit
f0433984f4
9 changed files with 324 additions and 23 deletions
|
|
@ -58,6 +58,7 @@ Read-Only:
|
|||
|
||||
Read-Only:
|
||||
|
||||
- `geofencing` (Map of List of String) A map of URLs to a list of countries where content is allowed.
|
||||
- `origin_request_headers` (Map of String) The configured origin request headers for the backend
|
||||
- `origin_url` (String) The configured backend type for the distribution
|
||||
- `type` (String) The configured backend type. Supported values are: `http`.
|
||||
|
|
|
|||
|
|
@ -22,6 +22,9 @@ resource "stackit_cdn_distribution" "example_distribution" {
|
|||
backend = {
|
||||
type = "http"
|
||||
origin_url = "https://mybackend.onstackit.cloud"
|
||||
geofencing = {
|
||||
"https://mybackend.onstackit.cloud" = ["DE"]
|
||||
}
|
||||
}
|
||||
regions = ["EU", "US", "ASIA", "AF", "SA"]
|
||||
blocked_countries = ["DE", "AT", "CH"]
|
||||
|
|
@ -80,6 +83,7 @@ Required:
|
|||
|
||||
Optional:
|
||||
|
||||
- `geofencing` (Map of List of String) A map of URLs to a list of countries where content is allowed.
|
||||
- `origin_request_headers` (Map of String) The configured origin request headers for the backend
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue