PiranhaCMS / piranha.core.docs

Official documentation for Piranha CMS
MIT License
13 stars 51 forks source link

Documentation for using AzureCDN with Azure Blob Storage module #34

Open badbod99 opened 4 years ago

badbod99 commented 4 years ago

I have several websites on Piranha CMS, all are using Azure Blob Storage. Piranha uses the container's public URL when showing images, e.g.

<img src="https://holtwebsiteslive.blob.core.windows.net/holtdoctors/307249f4-e376-48db-9043-23cc672a1276-wellbeing_2.jpg" alt="image">

I don't want this URL to be exposed in the HTML, or for file downloads. Azure Blob Storage only supports adding custom domains with HTTPS using Azure CDN. I noticed in the Piranha documentation for the Azure Blob Storage module this:

It's very easy to connect Azure CDN to Blob Storage.

I have successfully setup my Azure CDN, but how do I now use that with Piranha CMS?

Thanks.

tidyui commented 4 years ago

We will move this into the docs from the blog!

https://piranhacms.org/blog/setting-up-piranha-for-azure-cdn

tidyui commented 4 years ago

As a side note, images already referenced within an HTML-editor will need to be remapped, either manually or with a SQL-script as these references are just stored as text in the database. Image Blocks or Image Fields within regions will be updated automatically.