Summary: Utilize Google Cloud CDN with secure media!
GitHub: GitHub - Regalijan/gcloud-cdn-signer: Discourse plugin to utilize Google Cloud CDN with secure media
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:
-
Head to the Cloud CDN page and click on the origin.
-
Click edit, then click next until you reach the Cache performance step.
-
Set the restricted content setting to signed URLs and cookies, then create a signing key.
-
Grant the CDN Cache Fill service account viewer access to your bucket
-
Set the signing key value (
cdn_signed_urls_key
) and key name (cdn_signed_urls_key_name
) that you generated earlier. -
Enable
cdn_signed_urls_enabled