125 lines
3.4 KiB
JSON
125 lines
3.4 KiB
JSON
{
|
|
"ApplicationSetting": {
|
|
"SlowRunningThresholdMilliseconds": 3000,
|
|
"UploadTempPath": "data/upload/temp",
|
|
"UploadTemplatePath": "data/upload/templates",
|
|
"UploadMailMagazinePath": "data/upload/resources",
|
|
"ClientAppUrl": "https://example.com",
|
|
"UnsubscribePath": "unsubscribe"
|
|
},
|
|
"AuthSetting": {
|
|
"DefaultPassword": "AAAAAAAA",
|
|
"JwtPublicKey": "-----BEGIN PUBLIC KEY-----\nJwtPublicKey\n-----END PUBLIC KEY-----",
|
|
"JwtPrivateKey": "-----BEGIN PRIVATE KEY -----\nJwtPrivateKey\n-----END PRIVATE KEY-----",
|
|
"JwtIssuer": "https://identity.sothink.vn",
|
|
"JwtAudience": "cosmos-plan-crm,cosmos-plan-crm-api",
|
|
"JwtExpirationInMinutes": 3,
|
|
"JwtKeyId": "cosmos-plan-crm-api",
|
|
"RefreshTokenExpirationInMinutes": 60,
|
|
"RefreshTokenMaxUsage": 5,
|
|
"RefreshTokenCookieName": "RefreshTokenCookieName"
|
|
},
|
|
"AWS": {
|
|
"AccessKeyId": "",
|
|
"SecretAccessKey": "",
|
|
"Region": "",
|
|
"SESMailFrom": "noreply@example.com",
|
|
"SESMailServiceFrom": "noreply@example.com"
|
|
},
|
|
"DataProtection": {
|
|
"EncryptionKey": ""
|
|
},
|
|
"EventBus": {
|
|
"SesTopicName": "",
|
|
"TopicNamePrefix": ""
|
|
},
|
|
"CachingSetting": {
|
|
"Mode": "Memory",
|
|
"ModeDescription": "Support modes: [\"Memory\", \"Distributed\", \"Hybrid\"]",
|
|
"DefaultTtlInSeconds": 60,
|
|
"CachingDataTtlInSeconds": 300,
|
|
"DistributedConnectionString": "",
|
|
"DistributedDatabaseName": 0
|
|
},
|
|
"DatabaseSetting": {
|
|
"ConnectionString": "Host=${IP};Port=${PORT};Database=${DB_NAME};Username=${DB_USER};Password=${DATA_PASSWORD};Include Error Detail=true",
|
|
"BackgroundJobConnectionString": "Host=${IP};Port=${PORT};Database=${DB_NAME};Username=${DB_USER};Password=${DATA_PASSWORD};Include Error Detail=true",
|
|
"Schema": "${SCHEMA}",
|
|
"UseMigrations": false,
|
|
"UseSeedData": true
|
|
},
|
|
"OutboxMessageOptions": {
|
|
"IntervalInSeconds": 3,
|
|
"BatchSize": 10,
|
|
"RetryCount": 3
|
|
},
|
|
"Serilog": {
|
|
"Using": [
|
|
"Serilog.Sinks.Console",
|
|
"Serilog.Sinks.File",
|
|
"Serilog.Enrichers.ClientInfo"
|
|
],
|
|
"MinimumLevel": {
|
|
"Default": "Warning",
|
|
"Override": {
|
|
"MassTransit": "Information",
|
|
"Microsoft": "Information",
|
|
"Microsoft.EntityFrameworkCore": "Warning",
|
|
"Microsoft.EntityFrameworkCore.Database.Command": "Warning"
|
|
}
|
|
},
|
|
"WriteTo": [
|
|
{
|
|
"Name": "Console",
|
|
"Args": {
|
|
"formatter": "Serilog.Formatting.Compact.RenderedCompactJsonFormatter, Serilog.Formatting.Compact"
|
|
}
|
|
},
|
|
{
|
|
"Name": "File",
|
|
"Args": {
|
|
"path": "logs/log-.json",
|
|
"rollingInterval": "Day",
|
|
"retainedFileCountLimit": 30,
|
|
"formatter": "Serilog.Formatting.Compact.RenderedCompactJsonFormatter, Serilog.Formatting.Compact"
|
|
}
|
|
},
|
|
{
|
|
"Name": "Seq",
|
|
"Args": {
|
|
"ServerUrl": "http://localhost:5341"
|
|
}
|
|
}
|
|
],
|
|
"Properties": {
|
|
"Application": "Cosmos Plan CRM API",
|
|
"Environment": "Production"
|
|
},
|
|
"Enrich": [
|
|
"FromLogContext",
|
|
"WithMachineName",
|
|
"WithThreadId",
|
|
"WithClientIp",
|
|
"WithCorrelationId",
|
|
{
|
|
"Name": "WithRequestHeader",
|
|
"Args": {
|
|
"headerName": "User-Agent"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"Smtp": {
|
|
"Host": "",
|
|
"Port": 0,
|
|
"From": "",
|
|
"Username": "",
|
|
"Password": "",
|
|
"UseSsl": false
|
|
},
|
|
"Network": {
|
|
"KnownProxies": "103.205.208.186"
|
|
,"ForwardLimit": 2
|
|
}
|
|
}
|