Docs 1.0.0-beta Help

AWS Cloud Front

Start typing here...

Configuration

Json Options Schema

{ "$schema": "http://json-schema.org/draft-04/schema#", "title": "Bielu:Cdn:AWS:CloudFront", "definitions": { "BieluUmbracoCdnCoreConfigurationConfigurationBaseOptions": { "type": "object", "properties": { "Disabled": { "type": "boolean" } } } }, "allOf": [ { "$ref": "#/definitions/BieluUmbracoCdnCoreConfigurationConfigurationBaseOptions" }, { "type": "object", "properties": { "RegionName": { "type": "string" }, "SecretKey": { "type": "string" }, "AccessKey": { "type": "string" } } } ] }

SecretKey

This is a secret key for AWS account. It is required to be able to use AWS Cloud Front.

AccessKey

This is an access key for AWS account. It is required to be able to use AWS Cloud Front.

Disabled

This flag is responsible by enabling / disabling provider. Default value is false.

Region

This is a region where AWS Cloud Front is hosted. Default value is eu-west-1.

Installing Provider

In order to activate provider post installation, you need to add following code to your Startup.cs or Program.cs (for minimal hosting model) file.

In registration of services, after this lines:

services.AddUmbraco(_env, _config) .AddBackOffice() .AddWebsite() .AddComposers()

You need to add following line:

.AddAwsCloudFrontCdnProvider()
Last modified: 20 January 2024