Broadleaf Microservices
  • v1.0.0-latest-prod

Asset Service Configuration

Overview

There are various properties you can configure when utilizing Broadleaf’s Asset Service.

Service Properties

Property Description

broadleaf.asset.jpa.*

JPA Configuration Properties. See com.broadleafcommerce.common.jpa.data.JpaProperties for full list of options.

broadleaf.asset.datasource.*

Datasource Configuration Properties. See org.springframework.boot.autoconfigure.jdbc.DataSourceProperties for full list of options.

broadleaf.asset.liquibase.*

Liquibase Configuration Properties. See org.springframework.boot.autoconfigure.liquibase.LiquibaseProperties for full list of options.

broadleaf.asset.delegating.*

Delegating Schema Configuration Properties for running in a composed mode along side other Broadleaf microservices. See com.broadleafcommerce.common.jpa.data.SchemaDelegatingProperties for full list of options.

Cache Properties

Property Description

broadleaf.asset.cache.byUrlTtl

Properties that influence cache settings for the asset service.

(Default is 30 Minutes)

broadleaf.asset.cache.storage-location-mapping.by-provider-type-and-original-location-enabled

(since 2.0.3) Controls whether caching of StorageLocationMapping by storage provider type and original location is enabled. This doesn’t affect registration of the cache itself, but does affect whether flows use it.

(Default is false)

broadleaf.asset.cache.storage-location-mapping.by-provider-type-and-original-location-ttl

(since 2.0.3) Time to live for the StorageLocationMapping cache by storage provider type and original location.

(Default is 5 Minutes)

Internal Asset Properties

Property Description

broadleaf.asset.internal.*

Properties related to Assets of storageType DefaultAssetStorageType#INTERNAL.

See com.broadleafcommerce.asset.autoconfigure.InternalAssetProperties and Configuration Example for more details.

Image Operation Properties

Property Description

broadleaf.image.availableEffects

Properties related to the ImageOperationService that impact available effects.

(Defaults to ["resize", "crop", "unsharp"])

Data Initialization Properties

Property Description

broadleaf.asset.data.*

Seed data initialization properties. See com.broadleafcommerce.asset.autoconfigure.InitialDataAutoConfiguration.InitialDataProperties for all available options.