Skip to content
Riversoft STCP DirectLink Portal

Riversoft STCP DirectLink Portal

Riversoft® STCP DirectLink Portal has its own configuration file. The stcpdirectlink-portal package installs only the example-config.json template. Create the file from the template:

cd /usr/local/stcpdirectlink/static/portal/assets/configs
cp example-config.json config.json

config.json is preserved on package upgrades. Edit it and reload the portal in the browser to apply the changes.

{
  "url": "https://dirl.exemplo.com/directlink/v2",
  "language": "pt",
  "inactivityTimerMinutes": 30,
  "pinLen": 6,
  "logo": "images/river_banner_blue.png",
  "logoHeight": 96,
  "logoLaunchUrl": "https://www.exemplo.com",
  "background": "images/river_bg_02.jpg",
  "primaryColor": "0xFF0d1e32",
  "darkThemeEnabled": false,
  "supportEmail": "suporte@exemplo.com",
  "privacyLaunchUrl": {
    "pt_BR": "https://www.exemplo.com/privacidade",
    "pt": "https://www.exemplo.com/privacidade",
    "es": "https://www.exemplo.com/privacidad",
    "en": "https://www.exemplo.com/privacy"
  },
  "turnstileSiteKey": "<site-key>",
  "userEnabled": true,
  "emailEnabled": true,
  "emailSenderEnabled": false,
  "smsEnabled": true,
  "changePasswordOnly": false,
  "loginSSO": [
    {
      "provider": "google",
      "image": "images/btn_google.png",
      "enabled": true,
      "label": { "pt_BR": "Continuar com o Google", "pt": "Continuar com o Google", "es": "Continuar con Google", "en": "Continue with Google" }
    }
  ]
}

Connection, language and session

KeyDefaultDescription
url—Riversoft STCP DirectLink API base URL, ending in /directlink/v2. Required.
languageptInitial portal language: pt, pt_BR, es or en.
inactivityTimerMinutes30Minutes without activity before the portal session ends.
pinLen6Number of digits of the security code (PIN) entered for secure-link downloads.

Appearance

KeyDefaultDescription
logoimages/river_banner_blue.pngLogo image, relative to the portal assets folder.
logoHeight30Logo height, in pixels.
logoLaunchUrlhttps://riversoft.com.brAddress opened when the logo is clicked.
backgroundemptySign-in screen background image.
primaryColor0xFF0d1e32Primary color, in 0xAARRGGBB format.
darkThemeEnabledfalseUses the dark theme.

Contact and privacy

KeyDefaultDescription
supportEmailsuporte@riversoft.com.brSupport email shown to users.
privacyLaunchUrl—Privacy policy address per language (pt_BR, pt, es, en).

Portal features

KeyDefaultDescription
userEnabledtrueAllows sending files to Riversoft STCP DirectLink users.
emailEnabledfalseAllows sending files to recipients by email.
smsEnabledfalseAllows sending files to recipients by SMS.
emailSenderEnabledfalseShows the email field to receive the notice that the recipient downloaded the file.
changePasswordOnlyfalseLimits the portal to password change.

Security and SSO sign-in

KeyDescription
turnstileSiteKeyCloudflare Turnstile site key shown at sign-in. It must belong to the same widget as the secret key configured on the server (see Cloudflare Turnstile).
loginSSO[]SSO sign-in buttons shown on the sign-in screen.

Fields of each loginSSO item:

FieldDescription
providerProvider name. It must match an SSO provider configured in the instance.
imageButton image, relative to the portal assets folder.
enabledShows (true) or hides (false) the button.
labelButton text per language (pt_BR, pt, es, en).