You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: docs/providers/pulumi/gcp.mdx
+62Lines changed: 62 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,6 +129,14 @@ apis:
129
129
# provide domains to be used for the api
130
130
description: An Azure API
131
131
132
+
# Add CDN configuration, required for websites deployments
133
+
# Available since v1.20.0
134
+
cdn:
135
+
# The name of the Google Cloud DNS Zone to use when configuring the website DNS
136
+
zone-name: yourzone
137
+
# A valid subdomain for the DNS Zone to use for the deployed websites endpoint
138
+
domain-name: app.example.com
139
+
132
140
# Configure your deployed services
133
141
config:
134
142
# How services without a type will be deployed
@@ -162,6 +170,60 @@ config:
162
170
concurrency: 1000
163
171
```
164
172
173
+
### Websites
174
+
175
+
When deploying [websites](/websites), Google Cloud CDN doesn't automatically provide DNS names for deployed sites, so a DNS name must be provided. To do this you'll need to register a new domain name (or use one you already own), then configure the domain (or a subdomain) so that it uses the Google Name Servers (using a Google Cloud DNS Zone).
176
+
177
+
The DNS Zone in Google will then allow Nitric to create DNS records that route traffic to the CDN. Here are the steps:
178
+
179
+
- Purchase/Register a domain name with your domain registrar of choice.
180
+
- Navigate to https://console.cloud.google.com/net-services/dns/zones in your GCP Project
181
+
- Click `CREATE ZONE`
182
+
- Leave `Public` selected
183
+
- Enter a `Zone name`, and `Description` of your choice
184
+
- Enter your domain name (or subdomain) in the `DNS name` field
185
+
- Optionally enable DNSSEC
186
+
- Click `CREATE`
187
+
188
+
Now that the DNS Zone is created, you need to configure your registrar (domain) or existing DNS (subdomain) to point at the new name servers created for the zone.
189
+
190
+
The configuration detail are available on the `Zone details` page by clicking `REGISTRAR SETUP`. This step is different depending on your chosen domain registrar. Below are some general steps depending on whether your configuring the primary domain or a subdomain.
191
+
192
+
#### Domain
193
+
194
+
Your registrar (e.g. Namecheap, GoDaddy, Cloudflare, etc.) will allow you to change the name servers for you domain, sometimes this is called 'Custom DNS'. Add each of the name servers (NS records) from the Registrar setup dialog in the relevant config page for your registrar.
195
+
196
+
#### Subdomain
197
+
198
+
If you're configuring a subdomain e.g. app.yourdomain.com, you can simply add the NS records to your existing DNS configuration for the chosen subdomain. Typically, the config will look something like this:
199
+
200
+
<Note>Substitute your values for `Host` and `Nameserver`</Note>
0 commit comments