Copied to clipboard

Flag this post as spam?

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


  • Diogo 8 posts 82 karma points
    Jun 18, 2018 @ 10:32
    Diogo
    0

    Is CDN mandatory when using Azure Blob FileSystem with ImageProcessor?

    I can't seem to get the image processor to work on a website I have setup.

    From all the examples I see I can't seem to find one that doesn't use CDN but only uses the blob.

    Is it mandatory? If not, why can't I make image processor work?

    security.config

    <?xml version="1.0" encoding="utf-8"?>
    <security>
      <services>
        <!-- <service name="LocalFileImageService" type="ImageProcessor.Web.Services.LocalFileImageService, ImageProcessor.Web" /> -->
        <service prefix="media/" name="CloudImageService" type="ImageProcessor.Web.Services.CloudImageService, ImageProcessor.Web">
          <settings>
            <!-- <setting key="Container" value="website-staging"/> -->
            <setting key="MaxBytes" value="8194304"/>
            <setting key="Timeout" value="30000"/>
            <setting key="Host" value="https://livestorage.blob.core.windows.net/website-staging/"/>
          </settings>
        </service>
      </services>
    </security>
    

    cache.config

    <?xml version="1.0" encoding="utf-8"?>
    <caching currentCache="DiskCache">
      <caches>
        <cache name="DiskCache" type="ImageProcessor.Web.Caching.DiskCache, ImageProcessor.Web" maxDays="365" browserMaxDays="7" trimCache="false">
          <settings>
            <setting key="VirtualCachePath" value="~/app_data/cache"/>
          </settings>
        </cache>
      </caches>
    </caching>
    

    web.config

    ...
            <!--AzureBlobFileSystem-->
        <add key="AzureBlobFileSystem.ConnectionString:media" value="DefaultEndpointsProtocol=https;AccountName=livestorage;AccountKey=..." />
        <add key="AzureBlobFileSystem.ContainerName:media" value="website-staging" />
        <add key="AzureBlobFileSystem.RootUrl:media" value="https://livestorage.blob.core.windows.net/" />
        <add key="AzureBlobFileSystem.MaxDays:media" value="365" />
        <add key="AzureBlobFileSystem.UseDefaultRoute:media" value="true" />
    ...
    
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies