Skip to content

Parameter reference

Riversoft STCP Gemini API

File: /usr/local/stcpgemini-api/configs/config.json.

databases.config and databases.log

ParameterDescription
type_databaseDatabase type (e.g. mysql).
hostDatabase server address.
portDatabase port.
userDatabase user.
passwordDatabase password.
database_nameDatabase name.

The type_database, host, user, password and database_name fields accept the env: and file: prefixes, to read the value from an environment variable or a file instead of keeping it in config.json. Example: "password": "env:STCP_DB_PASSWORD".

general

ParameterDescription
sslEnables HTTPS/TLS on the API. With true, requires valid cert and key.
hostInterface on which the API listens. 0.0.0.0 listens on all interfaces.
portAPI port (e.g. 33070).
certTLS certificate, used when ssl is enabled.
keyCertificate private key.
key_passwordPrivate key password, if any.
api_secretSecret used to sign and validate tokens and protect passwords. Required: if empty, the API does not start. Sensitive data. Must be the same in the other modules of the environment. See Password encryption key.
templates_dirCustom templates folder.
rest_nameName of the API registration (API/Supervision) in the Riversoft Console Portal. At startup, the API loads the registration with this name; if it does not exist, the API does not start.
database_maintenanceInterval, in seconds, of the database maintenance routine. 0 disables it.
auth_typeAuthentication mechanism. Default value: native (native STCP authentication). For LDAP sign-in, the operator enters the user in the domain/operator format.
webapp_dirRiversoft Console Portal directory served in -lite mode. Takes precedence over the -webapp option.
sso_login_redirectReturn URL after SSO sign-in. If omitted, uses the API registration value.
sso_logout_end_sessiontrue also ends the session at the identity provider on sign-out.
session_durationValidity of the issued tokens, in minutes. Default 60; maximum 720 (12 hours).
appl_serialnumberLicense serial number.
appl_licenseLicense key. Sensitive data.

The host, port, cert, key and key_password fields not set in config.json are read from the API registration in the database.

The API checks the serial number and the license at startup: if they are invalid, it does not start. When the license expires, the API shuts down. The license status is available at GET /info/license.

Operator 2FA is enabled in the API registration. The DIRLMFA environment variable, with any value, also enables 2FA, even when it is disabled in the registration.

Riversoft Console Portal

File: /usr/local/stcpgemini-api/portal/app/configs/config.json.

ParameterDescription
EntryPoint[].nameEnvironment name shown in the Portal.
EntryPoint[].addressRiversoft STCP Gemini API address, in the scheme://host:port format (e.g. https://portal.example.com:33070).
defaultLanguageDefault interface language (e.g. pt).

Riversoft STCP Gemini Server

File: /usr/local/stcp/configs/stcpserver.config.json.

STCPCore

ParameterDescription
ApplNameName of the instance run, the same as registered in the Portal.
ApplDescriptionInstance description.
ApplUserOperating system user of the application.
ApplGroupOperating system group of the application.
ApplDirApplication directory.
ApplLockDirLock control directory.
ApplPidFileFile with the process number (PID).
ApplUmaskPermission mask for creating files and directories.
ApplDaemonDaemon mode execution. Always use "0".
ApplMsgFileNameApplication messages file.
ApplMsgLanguageMessage language (e.g. ptb).
ApplConfigPassPhrasePassphrase used to encrypt passwords. Sensitive data. Must be the same in the other modules of the environment. See Password encryption key.
ApplDebugDebug level for troubleshooting.
ApplMaximunConsoleMsgsMaximum number of messages shown on the console.
ApplMaximunAsyncProcessesMaximum number of simultaneous processes.

STCPCfg

ParameterDescription
DLLNameConfiguration access library, according to the DBMS: libstcpcfgodbc.so (Microsoft SQL Server), libstcpcfgoracle.so (Oracle Database) or libstcpcfgmysql.so (MySQL and MariaDB).
DBNameConfiguration database name.
DBHostDatabase server address.
DBPortDatabase port.
DBUserDatabase user.
DBPswdDatabase password.
MaxConfigTxtMaximum size, in bytes, of the configuration field.
MaxExtraTxtMaximum size, in bytes, of the extra field.