Gateway - Konfiguration
Die Konfiguration des SNcom SAP Gateway erfolgt über die appsettings.json Dateien.
Diese befindet sich direkt im Installationsverzeichnis.
{
"Serilog": {
"Using": [],
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Error",
"System": "Error"
}
},
"WriteTo": [
{
"Name": "Console"
},
{
"Name": "File",
"Args": {
"path": "C:\\Logging\\SNcom\\SNcom.Sap.Gateway\\SNcom.Sap.Gateway_.log",
"rollingInterval": "Day",
"rollOnFileSizeLimit": true,
"retainedFileCountLimit": 15,
"fileSizeLimitBytes": 50000000,
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}"
}
}
],
"Enrich": [
"FromLogContext",
"WithMachineName",
"WithProcessId",
"WithThreadId"
],
"Properties": {
"ApplicationName": "SNcom.Sap.Gateway"
}
},
"AppConfig": {
"Dummy": {
"Debug": false,
"ContactId": "00000000-0000-0000-0000-000000000000",
"PhoneNumber": "0",
"UserId": 0
},
"Cache": {
"CronTask": "0 0 23 1/1 * ? *",
"CacheHistoryDaysBack" : -30
},
"Routing": {
"PreferredAgentTimeoutSeconds": 360
},
"Ivr": {
"ListenPort": 50000,
"CheckInterval": 5
},
"Database": {
"VccDatamart": "Data Source=SERVER;Initial Catalog=VCC_Datamart;Persist Security Info=True;User ID=USER;Password=PASSWORD;MultipleActiveResultSets=True;Connection Timeout=5",
"VccTask": "Data Source=SERVER;Initial Catalog=VCC_Task;Persist Security Info=True;User ID=USER;Password=PASSWORD;MultipleActiveResultSets=True;Connection Timeout=5",
"Vmt": "Data Source=SERVER;Initial Catalog=VMT30;Persist Security Info=True;User ID=USER;Password=PASSWORD;MultipleActiveResultSets=True;Connection Timeout=5",
"MaxContacts": 5
},
"Sap": {
"ODataBaseUrl": "http://your.base.url",
"AuthUser": "USER",
"AuthPassword": "PASSWORD",
"TopModifySalesValueCount": 5,
"TimeRangeMonth": 12,
"MaxResultsToReturn": 15,
"ModifySalesValueMinSearchDate": "082019",
"LogODataResponse": true,
"TrimSearchMinimumLength": 7
}
},
"AllowedHosts": "*",
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://0.0.0.0:85"
},
"Https": {
"Url": "https://0.0.0.0:86",
"SslProtocols": [ "Tls11", "Tls12" ],
"Protocols": "Http1AndHttp2",
"ClientCertificateMode": "AllowCertificate",
"Certificate": {
"AllowInvalid": true,
"Location": "CurrentUser",
"Store": "My",
"Subject": "localhost"
}
}
}
}
}