Configure Mobile Web¶
Most normal configuration of the Mobile Web Connector is done in the Totalview Admin Client (See more Web Service Connectors), but some are done by editing the appsettings.json file in the MobileWeb folder.
appsettings.json Example¶
{
"App": {
"UseTime": false,
"IpFilter": null,
"TimeServerUrl": null,
"EnableSwagger": false
},
"DataDumpOptions": {
"Enabled": false,
"OutputDirectoryPath": "c:\\DataDump",
"SaveInterval": "00:05:00",
"SaveAsHTML": true,
"ErrorEmailFromAddress": "no-reply@totalview.cloud",
"ErrorEmailToAddress": "mail@domain.com"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"KestrelComment": "To enable HTTPS follow the guide on https://kb.total-view.com/documentation/technical-guides/mobile-web/how-to-switch-from-http-to-https.html",
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://+:8000"
}
}
},
"AllowedHosts": "*"
}
App:UseTime¶
If set to
true then Totalview Time features will be available for all users. E.g., Time tab is shown in then Mobile Application.When set to true the
App:TimeServerUrl must also be set.App:IpFilter¶
A list of IP address that are allowed to make requests to the endpoint.
If set to
null then no filter is applied.Example
"IpFilter": "127.0.0.1, ::1" will only allow traffic from localhost (often used if using a reverse proxy)Changing this does need a restart.
App:TimeServerUrl¶
Address for the time server URL. Can be null if
UseTime is falseApp:EnableSwagger¶
If set to
true the WSDL will be made available. Should be false in production.Changing this does need a restart.
DataDumpOptions¶
See Data Dump
Logging¶
The
default logging is controlled by the Admin Client and should not be changed manually.It is possible to add specific logging for sections. E.g., below the “Microsoft” log is set to trace.
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Trace",
"Microsoft.AspNetCore": "Warning"
}
},
See Configure logging on learn.microsoft.com for more details.
