Configuring the IBM MQ Console and REST API
The mqweb server that hosts the IBM® MQ Console and administrative REST API is provided with a default configuration. You can alter some of this
configuration, if required.
Configuring logging for administrative REST API and IBM MQ Console
You can configure the logging levels, maximum log file size, and the maximum number of log files that are used by the mqweb server that hosts the IBM MQ Console and administrative REST API.
Configuring the LTPA token expiry interval
When users log in to the IBM MQ Console , an LTPA token is generated. If you use token based authentication with the administrative REST API, an LTPA token is generated when the user logs in using the /login
REST API resource with the HTTP POST method. The token is used to authenticate the user without the user being required to log in again with their user ID and password, until the token expires. The default expiry interval is 120 minutes, but you can configure when the tokens expire by using the setmqweb command.
Configuring the response timeout
By default, the administrative REST API times out if the time taken to send a response back to a client is longer than 30 seconds. you can configure the administrative REST API to use a different timeout value by using the setmqweb command.
Configuring CORS for the REST API
By default, a web browser does not allow scripts, such as JavaScript, to invoke the administrative REST API when the script is not from the same origin as the REST API. That is, cross-origin requests are not enabled. You can configure Cross Origin Resource Sharing (CORS) to allow cross-origin requests from specified origins.