Manuel Settings

Device2Mail settings are grouped under different categories. General settings related to Device2Mail 4.0 are located under General Settings. However, there are some settings that cannot be made from the interface. Below are the settings made from local files.

The following settings can be edited in the backend\appsettings.json file in the Device2Mail installation directory.

Since the following settings are changed in the appsettings.json file, IIS must be restarted after the changes are made. Otherwise, the settings will not become valid and it will continue to work with the old settings.

AccessTokenExpiration

Determines the session duration of the user logging in to the web portal. It is in minutes and defaults to 60 minutes. Shortening the time will make usage more difficult and increase safety. If the period is extended, it will reduce the need to log in during the day. However, in this case, an accidentally forgotten session will remain open during this period.

ConnectionStrings\Device2Mail

Device2Mail uses the database in SQL Server. The connection string to this server is defined in this field. The information entered in this field is automatically encrypted after IIS runs.

SQL Server with default instance and with SQL Authentication

"Data Source=SERVERNAME; Initial Catalog=Device2Mail; user Id=UserName;password=Password; pooling=true; TrustServerCertificate=True;"

SQL Server with an instance and with SQL Authentication

"Data Source=SERVERNAME\Instance; Initial Catalog=Device2Mail; user Id=UserName;password=Password; pooling=true; TrustServerCertificate=True;"

SQL Server with default instance and with Integrated Authentication

"Data Source=SERVERNAME; Initial Catalog=Device2Mail; Trusted_Connection=True; pooling=true; TrustServerCertificate=True;"

SQL Server with an instance and with Integrated Authentication

"Data Source=SERVERNAME\Instance; Initial Catalog=Device2Mail; Trusted_Connection=True; pooling=true; TrustServerCertificate=True;"
appsettings.json (Backend)
{
  "ConnectionStrings": {
    "DbConnectionString": "Data Source=SERVERNAME; Initial Catalog=Device2Mail; Trusted_Connection=True; pooling=true; TrustServerCertificate=True;"
  },
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning"
    }
  },
  "AllowedHosts": "*",
  "TokenOptions": {
    "Audience": "ARKSOFT A.Ş",
    "Issuer": "EDM",
    "AccessTokenExpiration": 60,
    "SecurityKey": "ARKSOFT EDM Application"
  },
  "Localization": {
    "DefaultLanguage": "en-US",
    "DefaultLanguagesPath": "Localization\\Languages\\"
  },
  "CaptchaOptions": {
    "ImageWidth": 20,
    "ImageHeight": 20,
    "CaptchaCodeLength": 4,
    "CaptchaExpireSecond": 60
  },
  "Log": {
    "Enabled" : false
  }
}

Last updated