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.jsonconfig.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
| Key | Default | Description |
|---|---|---|
url | — | Riversoft STCP DirectLink API base URL, ending in /directlink/v2. Required. |
language | pt | Initial portal language: pt, pt_BR, es or en. |
inactivityTimerMinutes | 30 | Minutes without activity before the portal session ends. |
pinLen | 6 | Number of digits of the security code (PIN) entered for secure-link downloads. |
Appearance
| Key | Default | Description |
|---|---|---|
logo | images/river_banner_blue.png | Logo image, relative to the portal assets folder. |
logoHeight | 30 | Logo height, in pixels. |
logoLaunchUrl | https://riversoft.com.br | Address opened when the logo is clicked. |
background | empty | Sign-in screen background image. |
primaryColor | 0xFF0d1e32 | Primary color, in 0xAARRGGBB format. |
darkThemeEnabled | false | Uses the dark theme. |
Contact and privacy
| Key | Default | Description |
|---|---|---|
supportEmail | suporte@riversoft.com.br | Support email shown to users. |
privacyLaunchUrl | — | Privacy policy address per language (pt_BR, pt, es, en). |
Portal features
| Key | Default | Description |
|---|---|---|
userEnabled | true | Allows sending files to Riversoft STCP DirectLink users. |
emailEnabled | false | Allows sending files to recipients by email. |
smsEnabled | false | Allows sending files to recipients by SMS. |
emailSenderEnabled | false | Shows the email field to receive the notice that the recipient downloaded the file. |
changePasswordOnly | false | Limits the portal to password change. |
Security and SSO sign-in
| Key | Description |
|---|---|
turnstileSiteKey | Cloudflare 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:
| Field | Description |
|---|---|
provider | Provider name. It must match an SSO provider configured in the instance. |
image | Button image, relative to the portal assets folder. |
enabled | Shows (true) or hides (false) the button. |
label | Button text per language (pt_BR, pt, es, en). |