Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 0a00d66

Browse files
committed
chore: adds cdn configuration options
Adds CDN configuration options for Azure and GCP Terraform providers. This enables users to configure CDN settings, including zone names, domain names, and cache invalidation behavior, to be compatible with custom domains for website deployments.
1 parent 38b43dc commit 0a00d66

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

docs/providers/terraform/azure.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,18 @@ adminemail: [email protected]
110110

111111
# Subscription ID to associate deployed services with
112112
subscription-id: example-subscription-id
113+
114+
# Add CDN configuration, required for custom domains for website deployments
115+
# Available since v1.23.0
116+
cdn:
117+
# The name of the Azure DNS Zone to use when configuring the website DNS
118+
zone-name: example.com
119+
# The resource group name of the DNS Zone you configured in Azure DNS Zones
120+
zone-resource-group: yourzone-rg
121+
# A valid domain or subdomain for the DNS Zone to use for the deployed websites endpoint
122+
domain-name: app.example.com
123+
# Skip CDN cache invalidation during deployments (defaults to false)
124+
skip-cache-invalidation: true
113125
```
114126
115127
<Note>

docs/providers/terraform/gcp.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,21 @@ gcp-project-id: my-gcp-project-id
8787
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
8888
schedule-timezone: Australia/Sydney
8989
90+
# Add CDN configuration, required for websites deployments
91+
# Available since v1.22.0
92+
cdn:
93+
# The name of the Google Cloud DNS Zone to use when configuring the website DNS
94+
zone-name: yourzone
95+
# A valid subdomain for the DNS Zone to use for the deployed websites endpoint
96+
domain-name: app.example.com
97+
# The following configuration values are optional
98+
# Specify the TTL the CDN sends in the Cache-Control or Expires headers to clients
99+
client-ttl: 3600
100+
# Specify the TTL for content cached by the CDN when the origin server does not provide any caching directives
101+
default-ttl: 604800
102+
# Skip CDN cache invalidation during deployments (defaults to false)
103+
skip-cache-invalidation: true
104+
90105
# Configure your deployed services
91106
config:
92107
# How services without a type will be deployed

0 commit comments

Comments
 (0)