Summary: Utilize Google Cloud CDN with secure media!
GitHub: GitHub - Wolftallemo/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 LB Backends page and select your backend bucket.
-
Click edit, and open the advanced configurations panel.
-
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