OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.37k stars 1.12k forks source link

Orchard Media Module on Azure should use Custom Domain #1290

Open orchardbot opened 13 years ago

orchardbot commented 13 years ago

samward created: https://orchard.codeplex.com/workitem/17461

I have a custom domain specified for my Azure storage blob that Orchard is using. However, when I look at media items, the URL in the embed link is using the blob storage URL (i.e host.blob.core.windows.net), rather than my custom URL.

Either the media module should automatically detect if a custom URL is being used (if that possible), or at least provide an option to override the URL generation in the settings.

orchardbot commented 13 years ago

pettijohn commented:

I agree that this would be nice, but it can be solved with training and thus is low priority. When you include images, just swap the default domain for your custom one.

orchardbot commented 13 years ago

samward commented:

One thing to watch for (that I found out the hard way), is that buy default the blob storage URL uses https. Therefore when you access the https URL via a custom domain, either the media won't show, or you will get a certificate error (depending on the browser). So you may need some way of selecting whether to use http or https for the URL generation.

orchardbot commented 11 years ago

erik_oppedijk commented:

Is already fixed: add the BlobEndpoint in the connection string, then the custom domain is used from the code.

BlobEndpoint=http://blob.yourdomain.com/;DefaultEndpointsProtocol=http;AccountName=youraccount;AccountKey=yourkey