Cloudflare
Start typing here...
Configuration
Json Options Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Bielu:Cdn:Cloudflare",
"definitions": {
"BieluUmbracoCdnCloudflareConfigurationAuthenticationType": {
"type": "string",
"description": "",
"x-enumNames": [
"GlobalApiKey",
"BearerToken",
"Custom"
],
"enum": [
"GlobalApiKey",
"BearerToken",
"Custom"
]
},
"BieluUmbracoCdnCoreConfigurationConfigurationBaseOptions": {
"type": "object",
"properties": {
"Disabled": {
"type": "boolean"
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/BieluUmbracoCdnCoreConfigurationConfigurationBaseOptions"
},
{
"type": "object",
"properties": {
"Enterprise": {
"type": "boolean"
},
"Token": {
"type": "string"
},
"ApiKey": {
"type": "string"
},
"Email": {
"type": "string"
},
"AuthenticationType": {
"$ref": "#/definitions/BieluUmbracoCdnCloudflareConfigurationAuthenticationType"
}
}
}
]
}
AuthenticationType
This is an authentication type for Cloudflare account. It is required to be able to use Cloudflare. Default value is GlobalApiKey.
ApiKey
This is an API key for Cloudflare account. It is required to be able to use Cloudflare, if AuthenticationType is set to GlobalApiKey.
Email
This is an email for Cloudflare account. It is required to be able to use Cloudflare, if AuthenticationType is set to GlobalApiKey.
Token
This is a token for Cloudflare account. It is required to be able to use Cloudflare, if AuthenticationType is set to BearerToken.
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:
.
.AddCloudflareCdnProvider()
Last modified: 20 January 2024