Renamed appsettings to appsettings.template
This commit is contained in:
@@ -84,6 +84,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<BellePath>$(ProjectDir)wwwroot/umbraco</BellePath>
|
<BellePath>$(ProjectDir)wwwroot/umbraco</BellePath>
|
||||||
<JsonSchemaPath>$(ProjectDir)umbraco/config/appsettings-schema.json</JsonSchemaPath>
|
<JsonSchemaPath>$(ProjectDir)umbraco/config/appsettings-schema.json</JsonSchemaPath>
|
||||||
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Target Name="CheckPreconditions" BeforeTargets="Build">
|
<Target Name="CheckPreconditions" BeforeTargets="Build">
|
||||||
<Message Text="-CheckPreconditions-" Importance="high" />
|
<Message Text="-CheckPreconditions-" Importance="high" />
|
||||||
@@ -100,6 +101,11 @@
|
|||||||
<Message Text="Generate the appsettings json schema." Importance="High" Condition="!Exists('$(JsonSchemaPath)') and '$(UmbracoBuild)' == ''" />
|
<Message Text="Generate the appsettings json schema." Importance="High" Condition="!Exists('$(JsonSchemaPath)') and '$(UmbracoBuild)' == ''" />
|
||||||
|
|
||||||
<CallTarget Targets="JsonSchemaBuild" Condition="!Exists('$(JsonSchemaPath)') and '$(UmbracoBuild)' == ''" />
|
<CallTarget Targets="JsonSchemaBuild" Condition="!Exists('$(JsonSchemaPath)') and '$(UmbracoBuild)' == ''" />
|
||||||
|
|
||||||
|
|
||||||
|
<CallTarget Targets="AppsettingsBuild" Condition="!Exists('appsettings.json')" />
|
||||||
|
<CallTarget Targets="AppsettingsDevBuild" Condition="!Exists('appsettings.Development.json')" />
|
||||||
|
|
||||||
</Target>
|
</Target>
|
||||||
<Target Name="BelleBuild">
|
<Target Name="BelleBuild">
|
||||||
<!-- <Exec WorkingDirectory="$(ProjectDir)/../../src/Umbraco.Web.UI.Client/" Command="powershell -ExecutionPolicy RemoteSigned -Command '&{ npm install ; npm run build }'" />-->
|
<!-- <Exec WorkingDirectory="$(ProjectDir)/../../src/Umbraco.Web.UI.Client/" Command="powershell -ExecutionPolicy RemoteSigned -Command '&{ npm install ; npm run build }'" />-->
|
||||||
@@ -107,6 +113,15 @@
|
|||||||
<Target Name="JsonSchemaBuild">
|
<Target Name="JsonSchemaBuild">
|
||||||
<!-- <Exec WorkingDirectory="$(ProjectDir)/../../" Command="powershell -ExecutionPolicy RemoteSigned -Command '&dotnet run --project $pwd/src/JsonSchema/JsonSchema.csproj -c Release -- --outputFile $pwd/src/Umbraco.Web.UI.NetCore/$(JsonSchemaPath)'" />-->
|
<!-- <Exec WorkingDirectory="$(ProjectDir)/../../" Command="powershell -ExecutionPolicy RemoteSigned -Command '&dotnet run --project $pwd/src/JsonSchema/JsonSchema.csproj -c Release -- --outputFile $pwd/src/Umbraco.Web.UI.NetCore/$(JsonSchemaPath)'" />-->
|
||||||
</Target>
|
</Target>
|
||||||
|
<Target Name="AppsettingsBuild">
|
||||||
|
<Message Text="Generating appsettings.json because it doesnt exist" Importance="High" />
|
||||||
|
<Copy SourceFiles="$(Projectdir)/appsettings.template.json" DestinationFiles="$(ProjectDir)/appsettings.json" />
|
||||||
|
</Target>
|
||||||
|
<Target Name="AppsettingsDevBuild">
|
||||||
|
<Message Text="Generating appsettings.Development.json because it doesnt exist" Importance="High" />
|
||||||
|
<Copy SourceFiles="$(ProjectDir)appsettings.Development.template.json" DestinationFiles="$(ProjectDir)appsettings.Development.json" />
|
||||||
|
</Target>
|
||||||
|
|
||||||
|
|
||||||
<!-- clean Belle when cleaning and rebuilding, but only in Visual Studio -->
|
<!-- clean Belle when cleaning and rebuilding, but only in Visual Studio -->
|
||||||
<Target Name="CleanPreconditions" AfterTargets="Clean" Condition="'$(UmbracoBuild)' == ''">
|
<Target Name="CleanPreconditions" AfterTargets="Clean" Condition="'$(UmbracoBuild)' == ''">
|
||||||
|
|||||||
@@ -0,0 +1,59 @@
|
|||||||
|
{
|
||||||
|
"$schema" : "./umbraco/config/appsettings-schema.json",
|
||||||
|
"Serilog": {
|
||||||
|
"MinimumLevel": {
|
||||||
|
"Default": "Information",
|
||||||
|
"Override": {
|
||||||
|
"Examine.Lucene.Providers.LuceneIndex": "Debug",
|
||||||
|
"Examine.BaseIndexProvider": "Debug",
|
||||||
|
"Examine.Lucene.LoggingReplicationClient": "Debug",
|
||||||
|
"Examine.Lucene.ExamineReplicator": "Debug"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"WriteTo": [
|
||||||
|
{
|
||||||
|
"Name": "Async",
|
||||||
|
"Args": {
|
||||||
|
"configure": [
|
||||||
|
{
|
||||||
|
"Name": "Console"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"Umbraco": {
|
||||||
|
"CMS": {
|
||||||
|
"Examine": {
|
||||||
|
"LuceneDirectoryFactory": "TempFileSystemDirectoryFactory"
|
||||||
|
},
|
||||||
|
"Global": {
|
||||||
|
"Smtp": {
|
||||||
|
//"From": "your@email.here",
|
||||||
|
//"Host": "localhost",
|
||||||
|
// "Port": "25"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Hosting": {
|
||||||
|
"Debug": true
|
||||||
|
},
|
||||||
|
"RuntimeMinification": {
|
||||||
|
"useInMemoryCache": true,
|
||||||
|
"cacheBuster": "Timestamp"
|
||||||
|
},
|
||||||
|
"RichTextEditor": {
|
||||||
|
"Commands": [
|
||||||
|
{
|
||||||
|
"Alias": "fullscreen",
|
||||||
|
"Name": "Full Screen",
|
||||||
|
"Mode": "All"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"Plugins": [
|
||||||
|
"fullscreen"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
76
src/Umbraco.Web.UI.NetCore/appsettings.template.json
Normal file
76
src/Umbraco.Web.UI.NetCore/appsettings.template.json
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
{
|
||||||
|
"$schema": "./umbraco/config/appsettings-schema.json",
|
||||||
|
"ConnectionStrings": {
|
||||||
|
"umbracoDbDSN": ""
|
||||||
|
},
|
||||||
|
"Serilog": {
|
||||||
|
"MinimumLevel": {
|
||||||
|
"Default": "Information",
|
||||||
|
"Override": {
|
||||||
|
"Microsoft": "Warning",
|
||||||
|
"Microsoft.Hosting.Lifetime": "Information",
|
||||||
|
"System": "Warning"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Umbraco": {
|
||||||
|
"CMS": {
|
||||||
|
"Content": {
|
||||||
|
"Notifications": {
|
||||||
|
"Email": "your@email.here"
|
||||||
|
},
|
||||||
|
"MacroErrors": "Throw"
|
||||||
|
},
|
||||||
|
"Global": {
|
||||||
|
"DefaultUILanguage": "en-us",
|
||||||
|
"HideTopLevelNodeFromPath": true,
|
||||||
|
"UmbracoPath": "~/umbraco",
|
||||||
|
"TimeOutInMinutes": 20,
|
||||||
|
"UseHttps": false
|
||||||
|
},
|
||||||
|
"Hosting": {
|
||||||
|
"Debug": false
|
||||||
|
},
|
||||||
|
"KeepAlive": {
|
||||||
|
"DisableKeepAliveTask": false,
|
||||||
|
"KeepAlivePingUrl": "{umbracoApplicationUrl}/api/keepalive/ping"
|
||||||
|
},
|
||||||
|
"RequestHandler": {
|
||||||
|
"ConvertUrlsToAscii": "try"
|
||||||
|
},
|
||||||
|
"RuntimeMinification": {
|
||||||
|
"dataFolder": "umbraco/Data/TEMP/Smidge",
|
||||||
|
"version": "637642136775050602"
|
||||||
|
},
|
||||||
|
"Security": {
|
||||||
|
"KeepUserLoggedIn": false,
|
||||||
|
"UsernameIsEmail": true,
|
||||||
|
"HideDisabledUsersInBackoffice": false,
|
||||||
|
"AllowedUserNameCharacters": "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._@+\\",
|
||||||
|
"UserPassword": {
|
||||||
|
"RequiredLength": 10,
|
||||||
|
"RequireNonLetterOrDigit": false,
|
||||||
|
"RequireDigit": false,
|
||||||
|
"RequireLowercase": false,
|
||||||
|
"RequireUppercase": false,
|
||||||
|
"MaxFailedAccessAttemptsBeforeLockout": 5
|
||||||
|
},
|
||||||
|
"MemberPassword": {
|
||||||
|
"RequiredLength": 10,
|
||||||
|
"RequireNonLetterOrDigit": false,
|
||||||
|
"RequireDigit": false,
|
||||||
|
"RequireLowercase": false,
|
||||||
|
"RequireUppercase": false,
|
||||||
|
"MaxFailedAccessAttemptsBeforeLockout": 5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Tours": {
|
||||||
|
"EnableTours": true
|
||||||
|
},
|
||||||
|
"ModelsBuilder": {
|
||||||
|
"ModelsMode": "InMemoryAuto",
|
||||||
|
"Enable": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user