VirtServer Settings File
VirtServer stores its settings in the virt-server.yml settings file.
Location
The location where VirtServer searches for the settings file depends on the operating system and on the permissions VirtServer or its installer has:
-
Windows
<user folder>/.readyapi/virt-server/virt-server.yml -
Linux and macOS
If you installed or if you run VirtServer with root access (
sudo <path>/virtserver.sh):/etc/virt-server.ymlWithout root access:
<user folder>/.readyapi/virt-server/virt-server.yml -
VirtServer 2.0.1 and earlier
<VirtServer>/bin/virt-server.yml
VirtServer loads the settings file from the locations mentioned above by default. You can create your own settings file and specify it in the VirtServer command line. This will not work if you run VirtServer as a service (daemon), though.
Settings
Some settings in this .yml file are for internal use by VirtServer. We recommend that you be careful when changing the file. If something goes wrong after you change the settings, undo your changes or reinstall VirtServer.
Database Settings
Table 38. Database Settings
| virt-server.yml | Comments |
|---|---|
|
VirtServer stores virtual service data in a database. It uses the settings to work with this database. Do not change these settings. They are for internal use by VirtServer. |
Logging Settings
Table 39. Logging Settings
| virt-server.yml | Comments |
|---|---|
|
Various logging settings: default logging level, individual logger classes and their logging level, and so on. Change these settings only by request of the SmartBear Support team. |
|
Logging settings for individual virtual APIs. |
|
Logs are saved as individual files in the specified folder. |
|
Enable logging. If you have ever changed the setting via the web interface, its value will be stored in the virt-server-override.yml file. |
|
Use pretty print for log files. |
Time Zone Settings
Table 40. Time Zone Settings
| virt-server.yml | Comments |
|---|---|
|
Specifies the time zone for the log. |
Connection Settings
Table 41. Connection Settings
| virt-server.yml | Comments |
|---|---|
|
VirtServer connection settings. |
|
The protocol (https only). |
|
The port number. If you change the port, Virtualization will not be able to automatically find your VirtServer. You will have to specify connection settings manually. |
|
The file name of the Java keystore that contains the VirtServer certificate. This keystore is used only to secure traffic to and from the VirtServer web interface. To specify a keystore for virtual services, use the virtSSL settings described below. |
|
The password for accessing the keystore. |
|
If both keyStorePassword and keyManagerPassword are the same, use keyStorePassword. keyManagerPassword does not need to be added. If both fields are used and have different values, please add both fields and values to the configuration. |
|
Specifies whether VirtServer validates client certificates. |
|
List of cipher suites that won’t be used for the client-server communication process. |
|
List of cipher suites that will be used for the client-server communication process. All other cipher suites will be excluded and won’t be used to establish a connection. Older clients that don’t support these cipher suites won’t be able to connect to the server. |
|
For internal use by VirtServer. Do not change these settings. In case both the properties #supportedCipherSuits and #excludedCipherSuits are used together, supportedCipherSuits is given priority and will be considered first.You can review further information in this documentation for Dropwizard configuration: 2.0.x: Dropwizard Configuration Reference 4.0.x: Dropwizard Configuration Reference This configuration option is available in both Dropwizard versions. |
VirtServer Configuration
Table 42. VirtServer Configuration
| virt-server.yml | Comments |
|---|---|
|
VirtServer properties and HTTPS settings. |
|
We need this instead of applicationContextPath so we can process variables (such as version) in the String contextPath is used internally. Do not change. |
|
The maximum number of records in the activity log. This log stores information on deploying and downloading virtual services, starting and stopping them, and so on. |
|
The maximum number of records in the transaction log for a virtual API. This log stores information on individual requests. Storing too many records can consume a lot of memory. Set reasonable values. If you have ever changed the setting via the web interface, its value will be stored in the virt-server-override.yml file. |
|
If set to true, any boolean or numeric JSON payload values in Conditional Match responses will be stripped of quotes.Quotes in those values can be introduced when the response template uses quotes around property expansion. |
|
Controls how VirtServer processes Conditional Match responses.
|
SSL Settings
Table 43. SSL Settings
| virt-server.yml | Comments |
|---|---|
|
SSL certificate settings for virtual services. Uncomment, if needed. |
|
The keystore file name. |
|
The keystore password. |
|
A security key password. |
|
The CA certificate file establishes trust. |
|
The password of the trust certificate. |
Security Settings
Table 44. Security Settings
| virt-server.yml | Comments |
|---|---|
|
Security settings of VirtServer. Uncomment, if needed. If these settings are missing, add them manually. |
|
Enable a timeout for user sessions in the VirtServer web interface, for connections from ReadyAPI Virtualization, and for command-line sessions. The next two parameters specify the time after which a user will be logged out. If you have ever changed the timeout settings via the web interface, their values are stored in the virt-server-override.yml file. |
|
Time (in minutes) after which an idle user will be logged out of the VirtServer web interface. |
|
Time (in minutes) after which a user will be logged out of the VirtServer web interface regardless of their activity. |
|
Enable the password complexity mode. If this option is enabled, the password must be at least 6 characters long and contain at least one number and one capital letter. When you log in after the setting is turned on, your password might not meet the complexity criteria. In this case, you will have to change the password either by logging in to the web interface or by using the command line. |
|
Specifies in minutes how long a user will be locked out when the user enters the wrong password for five times. To disable the option, set it to 0 or comment it out. |
|
Set the option to false to prohibit connections to VirtServer by using ServiceV 2.8 or older. Default value: true. |
LDAP Settings
Table 45. LDAP Settings
| virt-server.yml | Comments |
|---|---|
|
Settings of the connection between VirtServer and LDAP. To learn more about LDAP, see this topic. |
|
Specifies the LDAP server address. If you have ever changed the setting via the web interface, its value will be stored in the virt-server-override.yml file. file. |
OIDC Settings
Table 46. OIDC Settings
| virt-server.yml | Comments |
|---|---|
|
Settings of the connection between VirtServer and OIDC. To learn more about OIDC, see this topic. |
|
This should be provided by your OIDC admin from the VirtServer app config. |
|
This should be provided by your OIDC admin based on your Okta org. |
|
|
|
This should be the same as in your OIDC provider. |
|
To be provided by the OIDC admin based on the Audience URI / Entity ID configured for the authorization server. |
|
|
Proxy Settings
Table 47. Proxy Settings
| virt-server.yml | Comments |
|---|---|
|
This configures proxy settings in VirtServer, allowing VirtServer to run on a different proxy than ReadyAPI. |
Override settings
If you have ever changed VirtServer settings via the web interface, there will be an additional settings file, virt-server-override.yml, and the settings will be stored there. They will override the settings configured in virt-server.yml.
To change those settings via settings files, you should:
- Change them in
virt-server-override.yml.
– or –
- Delete them from
virt-server-override.ymland change them invirt-server.yml.
Add a parameter for parsing legacy JDBC connection strings
As of Java 17.0.3 and from adopting 17.0.4 in ReadyAPI 3.41.0, the ‘_’ characters are no longer allowed in JDBC connection strings.
If your existing tests have the ‘_’ in their JDBC connection string, please add and use this JVM option:
-Dcom.sun.jndi.ldapURLParsing=“legacy”.
SNI and DropWizard
We have upgraded the DropWizard library with our latest release VirtServer 3.20.0, which also includes a Jetty upgrade.
However, Jetty 10.0.x introduces stricter SNI host checking hence, after the update you may encounter issues while making requests over HTTPS. Find more details regarding this issue here.
To solve this issue, the HttpsConnectorFactory has a disableSniHostCheck configuration option which enables or disables stricter security for an application. By default in VirtServer, this is set to true, and the SNI host check is disabled or turned off.
If you wish to change this setting, please follow these instructions:
-
Create a signed keystore with the certs you wish VirtServer to be accessible through. An example can be found here: SSL with CA signed certificate from Let’s Encrypt with a domain registered at GoDaddy.
-
Change connector (fields “applicationConnector” or “adminConnector”) for connecting to Virtserver. Add the field ‘disableSniHostCheck’ to the connector, and set it to ‘false’. Change ‘keyStorePath’ to point to your keystore. Change ‘keyStorePassword’ to the password needed to unlock the Keystore.
-
Restart VirtServer.