-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: corrected project configuration + added schema generation
- Loading branch information
Showing
12 changed files
with
172 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,5 @@ services.AddUmbraco(_env, _config) | |
``` | ||
You need to add following line: | ||
```C# | ||
. | ||
.AddAkamaiCdnProvider() | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Azure Classic Front Door | ||
|
||
Start typing here... | ||
## Configuration | ||
### Json Options Schema | ||
```json | ||
``` | ||
{src="../../src/bielu.Umbraco.Cdn.Azure.Cdn/schema/appsettings-schema.AzureCdnOptions.json" } | ||
|
||
## 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: | ||
```C# | ||
services.AddUmbraco(_env, _config) | ||
.AddBackOffice() | ||
.AddWebsite() | ||
.AddComposers() | ||
``` | ||
You need to add following line: | ||
```C# | ||
. | ||
.AddAzureFrontDoorCdnProvider() | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Azure Front Door | ||
# Azure Frondoor Standard / Premium | ||
|
||
Start typing here... | ||
## Configuration | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Azure | ||
## Configuration | ||
### Json Options Schema | ||
```json | ||
``` | ||
{src="../../src/bielu.Umbraco.Cdn.Azure.Common/schema/appsettings-schema.AzureCdnOptions.json" } | ||
|
||
|
||
#### AuthenticationType | ||
This is an authentication type for Azure Front Door account. It is required to be able to use Azure Front Door. | ||
#### ResourceGroupName | ||
This is a resource group name for Azure Front Door account. It is required to be able to use Azure Front Door. | ||
#### SubscriptionId | ||
This is a subscription id for Azure Front Door account. It is required to be able to use Azure Front Door. | ||
#### UserAssignedClientId | ||
This is a user assigned client id for Azure Front Door account. It is required to be able to use Azure Front Door. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
src/bielu.Umbraco.Cdn.Azure.Common/Schema/appsettings-schema.AzureBaseOptions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "bieluUmbracoCdnAzureCommonConfigurationAzureBaseOptions", | ||
"definitions": { | ||
"BieluUmbracoCdnAzureCommonModelsAuthenticationType": { | ||
"type": "string", | ||
"description": "", | ||
"x-enumNames": [ | ||
"ManagedIdentityCredential", | ||
"DefaultAzureCredential", | ||
"InteractiveBrowserCredential", | ||
"SharedTokenCacheCredential", | ||
"VisualStudioCredential", | ||
"VisualStudioCodeCredential", | ||
"AzureCliCredential", | ||
"AzurePowerShellCredential", | ||
"EnvironmentCredential" | ||
], | ||
"enum": [ | ||
"ManagedIdentityCredential", | ||
"DefaultAzureCredential", | ||
"InteractiveBrowserCredential", | ||
"SharedTokenCacheCredential", | ||
"VisualStudioCredential", | ||
"VisualStudioCodeCredential", | ||
"AzureCliCredential", | ||
"AzurePowerShellCredential", | ||
"EnvironmentCredential" | ||
] | ||
}, | ||
"BieluUmbracoCdnCoreConfigurationConfigurationBaseOptions": { | ||
"type": "object", | ||
"properties": { | ||
"Disabled": { | ||
"type": "boolean" | ||
} | ||
} | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/BieluUmbracoCdnCoreConfigurationConfigurationBaseOptions" | ||
}, | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"AuthenticationType": { | ||
"$ref": "#/definitions/BieluUmbracoCdnAzureCommonModelsAuthenticationType" | ||
}, | ||
"ResourceGroupName": { | ||
"type": "string" | ||
}, | ||
"SubscriptionId": { | ||
"type": "string" | ||
}, | ||
"UserAssignedClientId": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
...elu.Umbraco.Cdn.Azure.Common/buildTransitive/bielu.Umbraco.Cdn.Azure.Common.Targets.props
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<Project> | ||
<ItemGroup> | ||
<UmbracoJsonSchemaFiles Include="$(MSBuildThisFileDirectory)..\Schema\appsettings-schema.AzureBaseOptions.json" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters