101 lines
2.6 KiB
JSON
101 lines
2.6 KiB
JSON
{
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft": "Warning",
|
|
"Microsoft.Hosting.Lifetime": "Information"
|
|
}
|
|
},
|
|
"AllowedHosts": "*",
|
|
"WebApi": {
|
|
"Swagger": {
|
|
"SupportEMail": "support@example.com",
|
|
"TermsOfService": "https://www.example.com/impressum/",
|
|
"Licence": {
|
|
"Name": "MIT",
|
|
"Url": "https://opensource.org/licenses/MIT"
|
|
}
|
|
},
|
|
"EntityFrameworkmigration": {
|
|
"AutoMigrate": true
|
|
},
|
|
"Server": {
|
|
"UseCors": true,
|
|
"CorsPolicy": {
|
|
"AllowCredentials": true,
|
|
"AllowedHeaders": [
|
|
"*"
|
|
],
|
|
"AllowedMethods": [
|
|
"GET",
|
|
"POST",
|
|
"PUT",
|
|
"PATCH",
|
|
"DELETE",
|
|
"OPTIONS"
|
|
],
|
|
"AllowedOrigins": [
|
|
"https://www.example.com:443",
|
|
"https://localhost:4200",
|
|
"http://localhost:4200"
|
|
]
|
|
},
|
|
"UseHttpsRedirection": true,
|
|
"UseHsts": false,
|
|
"Headers": {
|
|
"ForwardedHeadersOptions": {
|
|
"ForwardedHeaders": [
|
|
"XForwardedFor",
|
|
"XForwardedProto"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"OpenId": {
|
|
"Authority": "https://openid.example.com/auth/realms/example",
|
|
"RequireHttpsMetadata": true,
|
|
"SaveToken": true,
|
|
"Validate": {
|
|
"Issuer": "https://openid.example.com/auth/realms/example",
|
|
"Audience": "audience",
|
|
"RequiredClaimType": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress",
|
|
"ValidateLifetime": true,
|
|
"RsaPublicKey": "RsaToken"
|
|
}
|
|
}
|
|
},
|
|
"SayHelloWorldJob": {
|
|
"CronExpression": "*/30 * * * * ? *",
|
|
"Name": "Example Job"
|
|
},
|
|
"Serilog": {
|
|
"Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.RollingFile" ],
|
|
"MinimumLevel": {
|
|
"Default": "Debug",
|
|
"Override": {
|
|
"Microsoft": "Debug",
|
|
"System": "Debug"
|
|
}
|
|
},
|
|
"WriteTo": [
|
|
{
|
|
"Name": "Console",
|
|
"Args": {
|
|
"outputTemplate": "===> {Timestamp:HH:mm:ss} [{Level}] {Message}{NewLine}{Exception}"
|
|
}
|
|
},
|
|
{
|
|
"Name": "RollingFile",
|
|
"Args": {
|
|
"pathFormat": "bin/Debug/net5.0/Logs/{Date}.log.json",
|
|
"formatter": "Serilog.Formatting.Compact.CompactJsonFormatter, Serilog",
|
|
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] [{SourceContext}] [{EventId}] {Message}{NewLine}{Exception}",
|
|
"retainedFileCountLimit": 90,
|
|
"rollingInterval": "Day",
|
|
"shared": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|