1. Configuration (4.x)
Most of the CleanSpeak configuration is performed in the app in the browser. However, some configuration is provided through a configuration file. You may modify this file in order to change your configuration, CleanSpeak will need to be restarted to pick up changes to this configuration. Assuming you installed it in the default locations, the configuration file may be found in the following directory. If you have installed it in an alternate location the path to this file will be different.
/usr/local/cleanspeak/config/cleanspeak.properties
C:\cleanspeak\config\cleanspeak.properties
1.1. Options
The following table contains all the configuration options that CleanSpeak uses. For your convenience, you may select the type of configuration you plan to use, and the names will be updated to correspond to your preference.
Display configuration values in format:
database.url [String] Required |
A JDBC URL for your database. For MySQL, this URL will look something like this:
For PostgreSQL, this URL will look something like this:
If you are using MySQL, you must include the
Some MySQL services such as Microsoft Azure may require a specific version of TLS to connect successfully. At the time of writing this note, the MySQL connector will not attempt to utilize TLSv1.2 by default, so when connecting to a service that requires this version you will need to explicitly request this version of TLS on the connection string. For example, appending this |
database.username [String] Required |
The username used to connect to the database. |
database.password String Required |
The password used to connect to the database. |
database.mysql.enforce-utf8mb4 [String] defaults to |
When set to
If this validation is not desired or not it is not possible to modify your MySQL configuration so satisfy the validation, disable this check
by setting this value to |
cleanspeak-app.additional-java-args [String] |
Any additional arguments that you want to pass to the Java VM where this service will run. |
cleanspeak-app.http.port [Integer] Required |
The port number that CleanSpeak will use to accept HTTP requests. |
cleanspeak-webservice.http.port [Integer] Deprecated |
The port number that CleanSpeak will use to accept HTTP requests. Deprecated in favor of |
cleanspeak-app.https.enabled [Boolean] defaults to |
Whether CleanSpeak will serve HTTPS requests from |
cleanspeak-app.https.port [Integer] |
The port number that CleanSpeak will use to accept HTTPS requests IF |
cleanspeak-webservice.https.port [Integer] Deprecated |
The port number that CleanSpeak will use to accept HTTPS requests IF |
cleanspeak-app.https.certificate [String] |
PEM encoded TLS certificates to use. Either this or |
cleanspeak-app.https.certificate-file [String] |
Path to a file containing a PEM encoded TLS certificate. Either this or |
cleanspeak-app.https.private-key [String] |
PEM encoded TLS private key to use. Either this or |
cleanspeak-app.https.private-key-file [String] |
Path to a file containing a PEM encoded TLS private key. Either this or |
cleanspeak-app.local-metrics.enabled [Boolean] defaults to |
If enabled, HTTP requests without a browser session and without an API key that originate from localhost will be allowed to access |
cleanspeak-app.memory [String] |
The amount of memory to allocate dedicate to Java VM where this service will run. Use the
For example, |
cleanspeak-app.runtime-mode [String] Defaults to |
The CleanSpeak runtime mode. The runtime mode causes some features to be modified based upon this configuration. The possible values are:
When in the |
cleanspeak-webservice.runtime-mode [String] Deprecated |
The CleanSpeak runtime mode. Deprecated in favor of |
cleanspeak-app.session.timeout [String] Defaults to |
The maximum idle time of a CleanSpeak user’s session before they must login again, formatted as a Java duration (see format). As long as the user’s browser is active with CleanSpeak, their session will keep extending up until the value of |
cleanspeak-app.session.max-age [String] Defaults to |
The absolute maximum length of a CleanSpeak user’s session before they must login again, formatted as a Java duration (see format). |
cleanspeak-app.silent-mode [String] Defaults to |
Determines if CleanSpeak should use Silent Mode during the startup process. Silent Mode automatically applies all database migrations during startup such that you do not need to run them manually. This is the preferred mode when in production. If |
cleanspeak-webservice.silent-mode [String] Deprecated |
Determines if CleanSpeak should use Silent Mode during the startup process. Deprecated in favor of |
proxy.host [String] |
The proxy host used for egress network traffic. To enable this egress proxy, you must configure both the proxy.host and proxy.port. |
proxy.port [String] |
The proxy port used for egress network traffic. To enable this egress proxy, you must configure both the proxy.host and proxy.port. |
proxy.username [String] |
The proxy username for egress network traffic. To enable authentication with your proxy, you must configure both the proxy.username and proxy.password. |
proxy.password [String] |
The proxy password for egress network traffic. To enable authentication with your proxy, you must configure both the proxy.username and proxy.password. |
search.servers [String] Required |
The
Single host example: |