Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jonas Widenberg 21 posts 102 karma points
    Nov 04, 2019 @ 12:21
    Jonas Widenberg
    0

    UmbracoFileSystemProviders.Azure + Our.Umbraco.AzureCDNToolkit - Serve mp4s

    Hi! I've (semi) successfully moved the media library to Azure Blob Storage and also configured the Azure CDN. It works as expected for my images. But my mp4-files which are rendered in html video-tags doesn't get picked up by the CDN.

    Can anyone explain why and if there's something I can do about it?

    <FileSystemProviders>
      <!-- Media -->
      <Provider alias="media" type="Our.Umbraco.FileSystemProviders.Azure.AzureBlobFileSystem, Our.Umbraco.FileSystemProviders.Azure">
        <Parameters>
          <add key="containerName" value="media-local"/>
          <add key="rootUrl" value="https://xxx.blob.core.windows.net/"/>
          <add key="connectionString" value="***"/>
          <!--
        Optional configuration value determining the maximum number of days to cache items in the browser.
        Defaults to 365 days.
      -->
          <add key="maxDays" value="365"/>
          <!--
        When true this allows the VirtualPathProvider to use the deafult "media" route prefix regardless 
        of the container name.
      -->
          <add key="useDefaultRoute" value="true"/>
          <!--
        When true blob containers will be private instead of public what means that you can't access the original blob file directly from its blob url.
      -->
          <add key="usePrivateContainer" value="false"/>
        </Parameters>
      </Provider>
    
    </FileSystemProviders>
    
    
    <imageProcessor>
        <security>
          <services>
            <service name="LocalFileImageService" type="ImageProcessor.Web.Services.LocalFileImageService, ImageProcessor.Web" />
            <service prefix="remote.axd" name="RemoteImageService"
                     type="ImageProcessor.Web.Services.RemoteImageService, ImageProcessor.Web">
              <settings>
                <setting key="MaxBytes" value="4194304" />
                <setting key="Timeout" value="3000" />
                <setting key="Protocol" value="http" />
              </settings>
              <whitelist>
              </whitelist>
            </service>
            <service prefix="media/" name="CloudImageService"
                     type="ImageProcessor.Web.Services.CloudImageService, ImageProcessor.Web">
              <settings>
                <setting key="Container" value="media-local" />
                <setting key="MaxBytes" value="8194304" />
                <setting key="Timeout" value="30000" />
                <setting key="Host" value="https://xxx.blob.core.windows.net/" />
              </settings>
            </service>
            <service name="AzureImageService"
                     type="ImageProcessor.Web.Plugins.AzureBlobCache.AzureImageService, ImageProcessor.Web.Plugins.AzureBlobCache">
              <settings>
                <setting key="StorageAccount"
                         value="***" />
                <setting key="Container" value="media-local" />
                <setting key="AccessType" value="Blob" />
              </settings>
            </service>
          </services>
        </security>
        <caching currentCache="AzureBlobCache">
          <caches>
            <cache trimCache="false" name="DiskCache" type="ImageProcessor.Web.Caching.DiskCache, ImageProcessor.Web" maxDays="365" memoryMaxMinutes="1" browserMaxDays="7">
              <settings>
                <setting key="VirtualCachePath" value="~/app_data/cache" />
              </settings>
            </cache>
            <cache name="AzureBlobCache" type="ImageProcessor.Web.Plugins.AzureBlobCache.AzureBlobCache, ImageProcessor.Web.Plugins.AzureBlobCache" maxDays="365">
              <settings>
                <setting key="CachedStorageAccount" value="***" />
                <setting key="CachedBlobContainer" value="cache" />
                <setting key="UseCachedContainerInUrl" value="true" />
                <setting key="CachedCDNRoot" value="https://xxx.azureedge.net" />
                <setting key="CachedCDNTimeout" value="2000" />
                <setting key="SourceStorageAccount" value="" />
                <setting key="SourceBlobContainer" value="" />
                <setting key="StreamCachedImage" value="false" />
              </settings>
            </cache>
          </caches>
        </caching>
        <processing configSource="config\imageprocessor\processing.config" />
      </imageProcessor>
    
  • Jonas Widenberg 21 posts 102 karma points
    Nov 26, 2019 @ 20:49
    Jonas Widenberg
    0

    Bump? (Sorry)

Please Sign in or register to post replies

Write your reply to:

Draft