appsettings.json for Linux
›
{
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"System.Net.Http.HttpClient": "Warning",
"Microsoft.Extensions.Http": "Warning",
"Microsoft.AspNetCore": "Information",
"Microsoft.AspNetCore.Mvc": "Information",
"Microsoft": "Information"
}
},
"WriteTo": [
{
"Name": "Console"
},
{
"Name": "File",
"Args": {
"path": "/var/log/sonusmail/log.txt", // Location of log files
"rollingInterval": "Day"
}
}
]
},
"Kestrel": { // Settings for Kestrel server used for the web admininstration interface
"Endpoints": {
"Http1": {
"Url": "http://:::8080"
},
"Https1": {
"Url": "https://:::8081"
}
},
"Certificates": {
"Default": {
"Path": "cert/localhost.crt",
"KeyPath": "cert/localhost.key"
}
}
},
"Storage": {
"Data": "/var/lib/sonusmail/", // Location of data files and folders
"UseProtocolLogs": false,
"ProtocolLogsPath": "/var/log/sonusmail/proto/" // Location of protocol logs
},
"ConnectionStrings": {
"DbConn": "Data Source=/var/lib/sonusmail/agms.dat" // Connection string for the Sqlite database file
},
"Admin": { // Admin user credentials
"UserName": "Admin",
"Password": "password"
},
"Certificate": { // SSL certificate settings for secure services
"PublicKey": "cert/localhost.crt",
"PrivateKey": "cert/localhost.key"
},
"DateTimeFormats": { // Date and time formats used on the web interface
"Date": "yyyy-MM-dd",
"Time": "HH:mm:ss zzz",
"DateTime": "yyyy-MM-dd HH:mm:ss zzz"
},
"AllowedHosts": "*"
}
appsettings.json for Windows
›
{
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"System.Net.Http.HttpClient": "Warning",
"Microsoft.Extensions.Http": "Warning",
"Microsoft.AspNetCore": "Information",
"Microsoft.AspNetCore.Mvc": "Information",
"Microsoft": "Information"
}
},
"WriteTo": [
{
"Name": "Console"
},
{
"Name": "File",
"Args": {
"path": "c:/ProgramData/sonusmail/logs/log.txt", // Location of log files
"rollingInterval": "Day"
}
}
]
},
"Kestrel": { // Settings for Kestrel server used for the web admininstration interface
"Endpoints": {
"Http1": {
"Url": "http://:::8080"
},
"Https1": {
"Url": "https://:::8081"
}
},
"Certificates": {
"Default": {
"Path": "c:/ProgramData/sonusmail/cert/localhost.crt",
"KeyPath": "c:/ProgramData/sonusmail/cert/localhost.key"
}
}
},
"Storage": {
"Data": "c:/ProgramData/sonusmail/", // Location of data files and folders
"UseProtocolLogs": false,
"ProtocolLogsPath": "c:/ProgramData/sonusmail/logs/proto/" // Location of protocol logs
},
"ConnectionStrings": {
"DbConn": "Data Source=C:/ProgramData/sonusmail/agms.dat" // Connection string for the Sqlite database file
},
"Admin": { // Admin user credentials
"UserName": "Admin",
"Password": "password"
},
"Certificate": { // SSL certificate settings for secure services
"PublicKey": "c:/ProgramData/sonusmail/cert/localhost.crt",
"PrivateKey": "c:/ProgramData/sonusmail/cert/localhost.key"
},
"DateTimeFormats": { // Date and time formats used on the web interface
"Date": "yyyy-MM-dd",
"Time": "HH:mm:ss zzz",
"DateTime": "yyyy-MM-dd HH:mm:ss zzz"
},
"AllowedHosts": "*"
}