Google CDN Configuration Guide
Prerequisites:
To be able to configure the reverse proxy on a Load Balancer in Google Cloud you should be either a project owner or editor, or you should have the following roles: roles/compute.networkAdmin
and roles/compute.instanceAdmin
Implementation steps
Step 1 Create the NEG and internet endpoint:
In the Google Cloud console, go to the Network endpoint groups page.
Click Create network endpoint group.
Enter the name of the network endpoint group:
jentis-fqdn-neg
.For Network endpoint group type, select Internet NEG.
For Default port, enter
443
.For New network endpoint, select Fully qualified domain name and port.
For the FQDN, enter: hash of the JENTIS container as subdomain + . + website domain, e.g. hash.yourwebsitedomain.com.
For Port type, select Default, and verify that Port number is
443
.Click Create.
Step 2: Create the backend service and add the internet NEG
In the Google Cloud console, go to the Load balancing page.
Select the classic Application Load Balancer of your website, and then select Edit.
Click Backend configuration.
In the Backend services & backend buckets menu, select Create a backend service.
Set the name of the backend service to
jentis
.For Backend type, select Internet network endpoint group.
Select the protocol HTTPS.
Under New backend > Internet network endpoint group, select
jentis-fqdn-neg
, and then click Done.Select Disable Cloud CDN.
In Advanced configurations, under Custom request headers, click Add header.
For Header name, enter
Host
.For Header value, enter
hash.yourwebsitedomain.com
.
Click Create.
Attach the backend service to an existing URL map
Click Host and path rules.
The first row or rows have Google Cloud services in the right column, and one of them is already populated with the default rule
Any unmatched (default)
for Hosts and Paths.Ensure that there is a row with
jentis
selected in the right column. If it doesn't exist, click Add host and path rule, and selectjentis
. Populate the other fields as follows:In Hosts, enter
*
.In Paths, enter '/' and the hash of the container:
/hash
.
Click Update
Last updated
Was this helpful?