Skip to content

Configuration

Overview

Each component has its own configuration file, created from a template installed with the package:

ComponentFileTemplate
Riversoft STCP Gemini API/usr/local/stcpgemini-api/configs/config.jsonexample-config.json
Riversoft Console Portal/usr/local/stcpgemini-api/portal/app/configs/config.jsonexample-config.json
Riversoft STCP Gemini Server/usr/local/stcp/configs/stcpserver.config.jsonexample-stcpserver.config.json

The parameters of each file are described in the Parameter reference.

Warning

The files contain database passwords, keys and secrets. Replace every sample value, restrict access to the service user and group, and do not version files that contain secrets.

Password encryption key

Passwords and other sensitive data stored in the configuration database (for example, the passwords of users, databases and supervision credentials) are encrypted. All modules that read or write this data must use the same key. Otherwise, a module cannot read the passwords stored by another one.

ModuleFileParameter
Riversoft STCP Gemini Server/usr/local/stcp/configs/stcpserver.config.jsonApplConfigPassPhrase (STCPCore section)
Riversoft STCP DirectLinkconfigs/config.json of the installationapplConfigPassPhrase
Riversoft STCP Gemini Rename/usr/local/stcpren/configs/config.jsonapplConfigPassPhrase (General section)
Riversoft STCP Gemini API/usr/local/stcpgemini-api/configs/config.jsonapi_secret (general section)
    flowchart LR
    K[Same key] --> G[Gemini Server]
    K --> D[DirectLink]
    K --> R[Gemini Rename]
    K --> A[Gemini API]
    G --> DB[(Configuration database<br/>encrypted passwords)]
    D --> DB
    R --> DB
    A --> DB
  

Important

Set the key before the first registration and use the same value in all modules of the environment. To change it later, the sensitive data already stored must be encrypted again with the new key, through a procedure performed with a dedicated application. Contact Riversoft support before changing the key.

  • Use a strong, random value, kept out of the code.
  • In Riversoft STCP DirectLink, the parameter accepts a secret reference (env:, file: or kms:). Prefer to read the value from an environment variable, a protected file or a secrets vault.
  • In Riversoft STCP Gemini API, api_secret also signs the access tokens.
  • Keep the key in the environment’s secure backup: without it, the passwords of a restored database cannot be read.

Next steps

  • Start the services: Operation.
  • Create the instance and change the administrator operator (stcpadmin) password: Administration.