These properties configure the Traffic Parrot web user interface (GUI) settings.
Web User Interface HTTP/HTTPS Port Configuration
| Property Name |
Default Value |
Description |
| trafficparrot.gui.http.port |
8080 |
HTTP port of the web user interface, served at http://localhost:[port].
With a value that is not a number from 1 to 65535, a blank one included, or a port another process holds, Traffic Parrot does not start.
|
| trafficparrot.gui.http.port.enabled |
true |
Whether the web user interface listens on its HTTP port. Leave it true: with false, or a value such as yes, the startup check, which asks the HTTP port, times out (after 45 seconds as shipped) and Traffic Parrot stops.
|
| trafficparrot.gui.https.port |
8079 |
HTTPS port of the web user interface, served at https://localhost:[port] with the keystore set below.
Traffic Parrot does not start with a value that is not a number, or, while HTTPS is on, a port another process holds.
|
Web User Interface HTTPS Configuration
| Property Name |
Default Value |
Description |
| trafficparrot.gui.https.port.enabled |
true |
Whether the web user interface listens on its HTTPS port. With false, or a value such as yes, HTTPS is off: Traffic Parrot starts and says nothing.
|
| trafficparrot.gui.https.jks.resource |
certificates/user-interface-https.jks |
Keystore for HTTPS connections to the web user interface, as a path relative to the installation directory. A missing file or an absolute path is not found: Traffic Parrot starts and says nothing, and every HTTPS connection fails.
|
| trafficparrot.gui.https.jks.password |
trafficparrot |
Password of the keystore in trafficparrot.gui.https.jks.resource. With a wrong or blank password and HTTPS on, Traffic Parrot does not start.
Security Note: In test and development environments, use a strong password and consider using environment variables or secure credential stores.
|
Important Notes
- Both HTTP and HTTPS can be enabled simultaneously, allowing access via both protocols
- These GUI ports are separate from the simulator (virtual service/mock) ports (8081 for HTTP, 8082 for HTTPS)
- The GUI ports are used for managing Traffic Parrot, while simulator (virtual service/mock) ports handle the actual mocked/virtualized traffic
- Ensure the selected ports are not already in use by other applications
Web User Interface Security and Access Control
| Property Name |
Default Value |
Description |
| trafficparrot.gui.security.mode |
ALLOW_ALL |
Whether the web user interface asks for a login.
ALLOW_ALL: no login.
LOGIN_PROPERTIES: HTTP basic authentication with the users in trafficparrot.gui.login.properties. Recommended, with HTTPS on.
See Role based access, which also covers the /__logs pages.
|
| trafficparrot.gui.enabled |
true |
Master switch to enable or disable the GUI entirely.
Values:
true - GUI server starts normally
false - GUI server won't start (useful for headless/API-only deployments)
|
Web User Interface Advanced Configuration
| Property Name |
Default Value |
Description |
| trafficparrot.gui.forwardToVirtualService.enabled |
true |
Whether a request to the web user interface port that matches none of its own endpoints is forwarded to the virtual service port, so both can be reached on one port. The performance profile sets false.
|
| trafficparrot.gui.jmx.enabled |
false |
Controls whether JMX (Java Management Extensions) is enabled for the GUI server.
Use Case: Enable this for remote monitoring and management of the GUI server using JMX tools.
|
| trafficparrot.gui.jmx.port |
8085 |
The port number for JMX connections when trafficparrot.gui.jmx.enabled is true.
It is read even with JMX off: with a value that is not a number, Traffic Parrot does not start.
|
| trafficparrot.gui.startup.timeout.milliseconds |
45000 |
How long, in milliseconds, to wait for the web user interface to start before giving up. Increase it on a slow system, or one that loads large configurations.
|
| trafficparrot.gui.http.queuedThreadPool.maxThreads |
200 |
The most threads the web user interface uses to handle HTTP requests. Increase it for many concurrent connections; each thread takes memory.
|
| trafficparrot.gui.http.queuedThreadPool.minThreads |
8 |
Sets the minimum number of threads in the Jetty thread pool for the Traffic Parrot GUI HTTP server.
Performance Impact: Controls the base number of threads available for handling GUI requests. Higher values ensure better responsiveness under load.
|
| trafficparrot.gui.config.files.allowedFilesToEdit |
.json$,.csv$,.properties$,.hbs$ |
Comma-separated regex patterns for the files the configuration files editor (Settings, Current configuration files) and the Templates page list, load and save. See which files the editor offers.
|
| trafficparrot.gui.config.files.notAllowedFilesToEdit |
^\\.,\\.git,target,deleted-scenarios,trafficparrot.properties,trafficparrot.performance.properties,trafficparrot.gui.login.properties,.*-connections\\.json,sftp-server-users\\.json,log4j,lib |
Comma-separated regex patterns for files and directories the configuration files editor will neither load nor save, credential files among them. It wins over the allowed list. See which files the editor offers.
|
| trafficparrot.gui.feedback.link.enabled |
true |
Shows the Send feedback link on the Help page, in the mapping editors' Available helpers panel and in the mapping explorer. The link carries the Traffic Parrot version and the page's path, nothing else. false hides the link.
|
| trafficparrot.gui.diagnostics.download.enabled |
true |
Whether GET /api/diagnostics on the web user interface port serves the diagnostics download. false turns it off: the port then answers that path as before, through the virtual service when forwarding is on, else with 404.
|
Which files the configuration files editor offers
The configuration files editor (Settings, Current configuration
files) lists, loads and saves a file that
trafficparrot.gui.config.files.allowedFilesToEdit matches and
trafficparrot.gui.config.files.notAllowedFilesToEdit does not. The second list
gates Load as well as Save, so a file it matches cannot be
read through the editor either. Each pattern is matched against the file's path relative to
the Traffic Parrot installation directory or the traffic files directory, so a directory name
further up the machine's filesystem cannot trigger one. An installation that overrides either
property keeps its own list, so carry the shipped entries below into it.
In trafficparrot.properties a backslash is written twice, as in the default
above (^\\., .*-connections\\.json). The file format drops a
single backslash, and ^. would then match every file, so the editor would
offer none. The table and the edge cases below show each pattern as the regular expression
Traffic Parrot reads, with one backslash.
The shipped allowed list takes .json, .csv, .properties
and .hbs files. With .hbs in it, a Handlebars partial that a response
template includes (see Template files) can be edited
on the page, and the next response that includes it uses the edit, with no restart. Partials
also have a page of their own, Tools, Templates, which lists
the .hbs files under the traffic files directory and loads and saves them the
same way, so both lists govern that page too. In the editor, a partial with another
extension is listed only if its suffix is in the allowed list; the Templates page lists
.hbs files only. An installation with its own allowed list adds
.hbs$ to edit partials on either page.
What each entry of the shipped not-allowed list keeps out of the editor:
| Pattern | What it keeps out |
^\. |
A dot-prefixed directory or file in the first path segment, such as .idea, .vscode or .claude directly under the traffic files directory. |
\.git |
.git, at any depth. |
target, deleted-scenarios, log4j, lib |
Build and system directories. |
trafficparrot.properties, trafficparrot.performance.properties |
Traffic Parrot's own properties files. |
trafficparrot.gui.login.properties |
The web user interface's user store, which holds every user name, password and role when trafficparrot.gui.security.mode=LOGIN_PROPERTIES is set. |
.*-connections\.json |
database-connections.json, ibm-mq-connections.json, jms-connections.json and any other file whose path contains -connections.json: the connection details and passwords for databases, IBM MQ queue managers and JMS brokers. |
sftp-server-users\.json |
The embedded SFTP server's users file under its default name, which holds each user's password or authorized keys. |
The not-allowed list is not a permission check on the user. Any other file the editor lists can
be loaded and saved by every user who holds traffic-parrot-gui-edit-role, whatever
the file holds, including a connections file whose path does not contain
-connections.json. When trafficparrot.gui.security.mode=LOGIN_PROPERTIES
is set, a signed-in user without that role sees the file names only, and the
/api/configuration/files endpoints that load or save a file refuse that user with
403; with the default ALLOW_ALL nobody signs in, so every user can
load and save. See Role based access.
Edge cases
-
A pattern matches when it is found anywhere in the path, so the
lib entry
also keeps out a file such as mappings/library.json.
-
A dot-prefixed directory nested deeper, such as
mappings/.hidden, is
not matched by ^\.; add /\. to the list,
written /\\. in the file, to block dot-entries at any depth. A dot inside a
file name is not affected, so
report.v1.json stays editable.
-
Each credential entry keeps the file it names out of the editor and nothing more.
Whatever the list says, the SFTP server's users file and its host key are also refused
under the names
trafficparrot.file.sftp.server.usersFile and
trafficparrot.file.sftp.server.hostKeyFile give them, whether or not the
server is enabled.
-
The editor keeps an LF-only file's line breaks: a file that uses LF alone is saved with
LF, and a file with CRLF or mixed line breaks, a file with no line break, and a new
file are saved with CRLF.
MCP Endpoint for AI Assistants
These properties control who may reach the /mcp endpoint, which lets an AI assistant
drive Traffic Parrot. The endpoint is served on the web user interface port. See the
MCP endpoint reference for the endpoint, the handshake and the tools it
exposes, and Connect your assistant with MCP
to point a client at it.
| Property Name |
Default Value |
Description |
| trafficparrot.mcp.authenticator |
ALLOW_LOCAL_HOST_ONLY |
How requests to /mcp are authenticated: ALLOW_LOCAL_HOST_ONLY accepts requests from this machine only, with no token; BEARER_TOKEN accepts them from anywhere when they carry the token in trafficparrot.mcp.token. See Who can reach it.
|
| trafficparrot.mcp.token |
(none) |
The bearer token a request to /mcp must carry when trafficparrot.mcp.authenticator=BEARER_TOKEN; Traffic Parrot will not start without it then. Ignored otherwise. Choose your own secret: there is no default.
|
| trafficparrot.mcp.allowedOrigins |
(none) |
Web origins allowed to drive /mcp from a browser: a comma-separated list, each entry
scheme://host or scheme://host:port. The empty default refuses every
browser-hosted client. List only origins you serve yourself. See
From a browser.
|