Signed Google Cloud CDN URLs

Summary: Utilize Google Cloud CDN with secure media!

:link: GitHub: GitHub - Regalijan/gcloud-cdn-signer: Discourse plugin to utilize Google Cloud CDN with secure media
:arrow_right: Install: Follow the plugin installation guide.

About

Secure Media is a great feature of Discourse, however there is no built-in CDN support. This plugin adds support for Google Cloud CDN’s signed links implementation.

Configuration

Prerequisites:

  • Secure Media must be enabled
  • Google Cloud Storage bucket
  • Your S3 CDN URL must be set and Google Cloud CDN properly configured

Steps:

  1. Head to the Cloud CDN page and click on the origin.

  2. Click edit, then click next until you reach the Cache performance step.

  3. Set the restricted content setting to signed URLs and cookies, then create a signing key.

  4. Grant the CDN Cache Fill service account viewer access to your bucket

  5. Set the signing key value (cdn_signed_urls_key) and key name (cdn_signed_urls_key_name) that you generated earlier.

  6. Enable cdn_signed_urls_enabled

7 Likes