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:

  1. In the Google Cloud console, go to the Network endpoint groups page.

    Go to Network endpoint groups

  2. Click Create network endpoint group.

  3. Enter the name of the network endpoint group: jentis-fqdn-neg.

  4. For Network endpoint group type, select Internet NEG.

  5. For Default port, enter 443.

  6. For New network endpoint, select Fully qualified domain name and port.

  7. For the FQDN, enter: hash of the JENTIS container as subdomain + . + website domain, e.g. hash.yourwebsitedomain.com.

  8. For Port type, select Default, and verify that Port number is 443.

  9. Click Create.


Step 2: Create the backend service and add the internet NEG

  1. In the Google Cloud console, go to the Load balancing page.

    Go to Load balancing

  2. Select the classic Application Load Balancer of your website, and then select Edit.

  3. Click Backend configuration.

  4. In the Backend services & backend buckets menu, select Create a backend service.

  5. Set the name of the backend service to jentis.

  6. For Backend type, select Internet network endpoint group.

  7. Select the protocol HTTPS.

  8. Under New backend > Internet network endpoint group, select jentis-fqdn-neg, and then click Done.

  9. Select Disable Cloud CDN.

  10. In Advanced configurations, under Custom request headers, click Add header.

    1. For Header name, enter Host.

    2. For Header value, enter hash.yourwebsitedomain.com.

  11. Click Create.

  12. Attach the backend service to an existing URL map

    1. Click Host and path rules.

    2. 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.

    3. 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 select jentis. Populate the other fields as follows:

      1. In Hosts, enter *.

      2. In Paths, enter '/' and the hash of the container: /hash.

    4. Click Update

Last updated

Was this helpful?