Skip to content

Parameter reference

This page lists the parameters of the Riversoft® STCP DirectLink config.json file, with type and default value. How each group is used is described in Configuration.

Note

config.json is read at startup. After changing any parameter, restart the service. In the Default column, “—” means there is no default value.

Transfer and links

Details: Configuration › Transfer and links.

ParameterTypeDefaultDescription
downloadEnableboolean—Enables downloads.
downloadExpireDaysinteger1Download link validity, in days. 0 uses 24 hours.
downloadPinExpireSecondsinteger180Download PIN validity. Values up to 60 use 180 seconds; larger values are adjusted to multiples of 60.
uploadEnableboolean—Enables uploads.
uploadMaxFileSizeinteger—Maximum upload size, in bytes.
uploadValidateJSONboolean—Enables JSON validation in the upload flow.
secureLinkPinMaxLeninteger6Maximum secure link PIN length. A value less than or equal to zero uses 6.
secureLinkPinExpireSecondsinteger180Secure link PIN validity. Values up to 60 use 180 seconds.
reportMaxLinesinteger100Report lines per page. Values less than or equal to zero or greater than 1000 use 100.

Email

Details: Configuration › Email.

ParameterTypeDefaultDescription
emailEnableboolean—Enables email notifications.
emailServerAddressstring—SMTP server host.
emailServerPortinteger—SMTP port, for example 587.
emailAuthUserstring—SMTP user.
emailAuthPswdstring—SMTP password or secret reference.
emailAuthTypestring—Authentication type accepted by the provider.
emailTemplatesPathstringrequired with emailEnableEmail templates directory. Required when emailEnable is true.
emailSendFromstring—Message sender.
emailReplyTostring—Reply-To header address.
emailFormatMimeFromstring—From header format.
emailSendConfirmationEnableboolean—Sends a confirmation after the transfer.
emailSendConfirmationToSenderEnableboolean—Also sends the confirmation to the sender.
emailSendRetryMaximuminteger—Maximum number of sending attempts.
emailSendRetryWaitSecondsinteger—Interval between attempts, in seconds.
emailCheckValidMXDisableboolean—Disables the MX record check of the recipient’s domain.
emailProviderstringemptyEmail sending provider. Empty uses SMTP, the only supported provider.

SMS and WhatsApp

Details: Configuration › SMS and WhatsApp.

ParameterTypeDefaultDescription
smsEnableboolean—Enables SMS or WhatsApp notifications.
smsSendConfirmationEnableboolean—Sends a transfer confirmation.
smsTemplatesPathstringrequired with smsEnableTemplates directory. Required when the feature is enabled.
smsProviderstring—Provider, for example whatsapp.
smsEndpointstring—Provider HTTP endpoint.
smsAuthUserstring—Authentication identifier at the provider.
smsAuthPswdstring—Provider secret or secret reference.
smsSenderstring—Sender identifier, such as the WhatsApp Business ID.
smsSendConfirmationToSenderEnableboolean—Sends the sender, by SMS, the confirmation that the recipient downloaded the file.

Routing and distribution

Details: Configuration › Routing and distribution.

ParameterTypeDefaultDescription
routeEnableboolean—Enables file routing.
routeTableCSVFilestring—CSV file that maps origin, destination and recipients.
routeCSVDelimiterstring—CSV separator, usually ;.
routeScanTimerMsinteger—Scan interval, in milliseconds.
routeScanSplitFilenameRegexstring—Regular expression that splits origin and file name (origin and filename groups).
routeExternalCmdEnableboolean—Enables an external command in routing.
routeExternalCmdstring—External command, with an absolute path.
routeExternalCmdParamsstring—External command parameters.
routePathlist of strings—Additional directories scanned by routing.
routeCopyFileEnableboolean—Copies the file to routeCopyPath.
routeCopyPathstring—Copy path template; accepts placeholders such as <destination> and <filename>.
routeDirectLinkEnableboolean—Generates a Riversoft STCP DirectLink link for the routed file.
routeDirectLinkTableIndexstring—Column used to find the route, for example destination.
routeDirectLinkUrlstring—Riversoft STCP DirectLink API base URL.
routeMoveFileEnableboolean—Moves the file to routeMovePath after processing.
routeMovePathstring—Backup path template; accepts <origin>, <filename> and <unixtime>.
routeRemoveFileboolean—Removes the original file after processing.

URL shortener

Details: Configuration › URL shortener.

ParameterTypeDefaultDescription
urlShortnerEnableboolean—Enables URL shortening.
urlShortnerProviderstring—Provider, for example bitly.
urlShortnerEndpointstring—Provider API endpoint.
urlShortnerTokenstring—Provider token or secret reference.

Cloudflare Turnstile

Details: Configuration › Cloudflare Turnstile.

ParameterTypeDefaultDescription
turnstileEnableboolean—Requires the Turnstile token. With false, the header is ignored.
turnstileSecretKeystringrequired with turnstileEnableWidget secret key or secret reference. Required when turnstileEnable is true; without it, the service does not start.
turnstileEndpointstringhttps://challenges.cloudflare.com/turnstile/v0/siteverifyValidation endpoint. Change it only for an outbound proxy or tests.
turnstileTimeoutSecondsinteger10Maximum validation time. Values less than or equal to 0 use the default.

STCP configuration database

Details: Configuration › STCP configuration database.

ParameterTypeDefaultDescription
cfgProviderstring—stcpgeminidb for the Riversoft STCP Gemini Server database or stcpwindows for the Riversoft STCP Enterprise Server configuration.
cfgInstanceNamestring—STCP instance name.
cfgDbNamestring—Database name or path, according to the provider. Accepts connection options, such as TLS options (see Requirements).
cfgDbHoststring—Database host.
cfgDbPortinteger—Database port.
cfgDbUserstring—Database user.
cfgDbPswdstring—Password or secret reference.
cfgDbTypestring—Database type, for example mysql.
cfgDbOptionsstring—Additional options appended to the database name.

Log database

Details: Configuration › Log database.

ParameterTypeDefaultDescription
logDbEnableboolean—Enables writing logs to a database.
logDbWindowsboolean—Uses the Windows log mechanism, where applicable.
logDbTypestring—Log database type.
logDbHoststring—Log database host.
logDbPortinteger—Log database port.
logDbUserstring—Log database user.
logDbPswdstring—Password or secret reference.
logDbNamestring—Log database name.

Application and security

Details: Configuration › Application and security.

ParameterTypeDefaultDescription
applLicensestringrequiredLicense file path. The file must exist.
applDirstringrequiredAbsolute installation directory. It must exist.
applLockDirstring—Lock directory. It must exist and be writable by the service user.
applPidFilestringrequiredPID file path.
applConfigPassPhrasestring—Passphrase used to protect configuration values. Accepts a secret reference. Must be the same in the other modules of the environment. See Password encryption key.
applSecretstring—Secret used to protect links. Use a strong, stable and private value.
applUserstringstcpService user. Default: stcp.
applGroupstringstcpService group. Default: stcp.
applDebuginteger—Debug level.
applUmaskstring0022Umask for created files. Default: 0022.
applDebugPathstring—Debug files directory. The -debugPath command-line option takes precedence.
licensestring—Former name of applLicense, accepted for compatibility. Use applLicense.

Telemetry

Details: Configuration › Telemetry.

ParameterTypeDefaultDescription
enable_traces, enable_logs, enable_metricsboolean—Enable the export of traces, logs and metrics.
provider_typestring—Exporter type, for example otlphttp.
provider_hoststring—Collector host and port.
provider_file_pathstring—File used by file-based exporters.
resource_modestring—Resource creation strategy.
service_namespace, service_envstring—Service namespace and environment (for example, prod).
connect_timeout, export_timeoutinteger—Connection and export timeouts.
tls_enabledboolean—Enables TLS for the exporter.
tls_min_version, tls_max_versionstring—TLS version limits.
tls_public_key_cert_file, tls_private_key_file, tls_private_key_file_pswdstring—Client certificate, private key and password, when required.
tls_ca_filestring—Trusted CA.
tls_ciphersstring—Allowed ciphers.
tls_verify_certsboolean—Validates certificates. Keep it true in production.

Service

Details: Configuration › Service.

ParameterTypeDefaultDescription
serviceNamestring—Internal name used by the service manager.
serviceDescriptionstring—Service description.
serviceDisplayedNamestring—Service display name.

Secrets provider (Kms)

Details: Configuration › KMS and secrets.

ParameterTypeDefaultDescription
kmsEnableboolean—Enables the secrets provider.
kmsTypestring—Provider type: aws:secretmanager, azure:keyvault, gcp:secretmanager or oci:keyvault.
kmsNamestring—Descriptive provider name.
kmsRegionstring—Service region (AWS and OCI).
kmsEndpointstring—Vault address (Azure and OCI).
kmsTenantstring—Tenant (Azure) or tenancy (OCI).
kmsVaultIdstring—Vault identifier (OCI).
kmsClientIdstring—Client or service account identifier.
kmsClientSecretstring—Client secret, when workload identity is not used.
kmsClientPrivateKeystring—Client private key (OCI).
kmsClientPrivateKeyPswdstring—Client private key password (OCI).
kmsClientFingerprintstring—Client key fingerprint (OCI).
KmsClientAccessTokenstring—Client access token (GCP).
kmsConfigFilestring—Credentials file (GCP).

Riversoft STCP DirectLink Portal

The parameters of the Riversoft STCP DirectLink Portal configuration file are in Configuration › Riversoft STCP DirectLink Portal.