sintoniadocs
Getting started

Initial setup

First account, installation administrator, workspace and invitations.

On this page1. Check prerequisites2. Create the first account3. Understand the two administrative scopes4. Activate installation administration5. Use the default workspace or create your organization's first workspace6. Invite the team and create a channel7. Finish configurationTroubleshooting

Start here once your installation is running. This guide takes the server owner from the first account to inviting a team. Open your own installation's web address. There is no universal administrator account or published default password.

1. Check prerequisites#

  • A working HTTPS application/backend with migrations applied. See self-hosted deployment or DigitalOcean for infrastructure.
  • SSH access if you need to prepare registration or recover administration. The supplied Droplet deployment uses /opt/sintonia.
  • An email address you control. Real SMTP delivers external email; Mailpit captures test messages without delivering them to real mailboxes.
  • A deployment repository checkout containing scripts/grant-instance-admin.sh if the initial token is empty.

Each command states where to run it: browser, server terminal or workstation terminal. Replace uppercase placeholders. Never paste tokens, passwords, keys or a complete .env into chats/support tickets.

2. Create the first account#

In the browser, open the installation's HTTPS address and choose Crie sua conta. Enter your name, email, password and password confirmation. Passwords have 12–128 characters. Verify email or await approval when required by policy. The first device is prepared automatically; additional devices require linking or recovery.

If your account already exists, sign in with it instead of registering another account to obtain administration.

Registration disabled on a new installation#

In the server terminal, during initial preparation only:

sh
cd /opt/sintonia
sudoedit .env

Open a registration window restricted to your public IP. Replace YOUR_PUBLIC_IP/32 with your real public IPv4 address, not the Droplet address:

properties
REGISTRATION_ENABLED=true
REGISTRATION_MODE=ip_restricted
REGISTRATION_ALLOWED_CIDRS=YOUR_PUBLIC_IP/32

For IPv6, use the correct address with /128. Do not leave the literal placeholder. Save, then run:

sh
docker compose up -d --no-deps backend

Register in the browser. Environment values seed policy; an existing database policy takes precedence. For an established installation use the current administrative policy or an invitation, rather than attempting to overwrite it through environment variables. Initial approval requirements are disabled by default.

When using Mailpit#

In the workstation terminal, create a private tunnel to the Droplet Mailpit:

sh
ssh -N -L 18026:127.0.0.1:18025 root@DROPLET_IP

Open http://localhost:18026 in your browser, find the captured email and follow its link. Keep the tunnel open while using it. Do not expose the Mailpit port publicly. Configure real SMTP before sending invitations to an external team.

3. Understand the two administrative scopes#

RoleScope
Workspace owner/administratorPeople, channels and settings within that workspace.
Installation administratorAccounts, global security, registration, limits, recording and APK distribution across the server.

In self-hosted mode the first account in the default workspace becomes its workspace owner. It does not automatically become installation administrator. Installation administration also provides neither private-message keys nor the separate custodian role.

4. Activate installation administration#

Choose one path below using the same account created in step 2.

Path A: an initial token is configured#

This only works if no installation administrator exists and ADMIN_SETUP_TOKEN is configured.

  1. In the server terminal, open /opt/sintonia/.env with sudoedit and locate the configured token privately. Do not print the file into terminal logs or share it.
  2. In the browser, sign in and open Administração → Overview → Configuração inicial.
  3. Select Ativar acesso administrativo, enter the setup token and confirm.
  4. Use Atualizar in the portal.

The setup token is distinct from your login password. Bootstrap only works before the first administrator exists. If the token is empty or another administrator exists, use the existing administrative account or path B as the server owner.

Path B: empty token or server-owner recovery#

The owner with SSH can grant installation administration to an existing local account without a bootstrap token or another deployment.

In the workstation terminal, open the DigitalOcean deployment repository root containing scripts/. Replace the IP and YOUR_EMAIL:

sh
ssh root@DROPLET_IP 'cd /opt/sintonia && bash -s -- --email YOUR_EMAIL' \
  < scripts/grant-instance-admin.sh

The script is streamed to SSH and does not need to be installed on the Droplet first. Use an SSH account permitted to operate Docker; root matches the supplied stack.

If you are already connected to the server as root, keep that session open. From a second terminal on the workstation, copy the utility:

sh
scp scripts/grant-instance-admin.sh root@DROPLET_IP:/tmp/sintonia-grant-instance-admin.sh

Then, in the server terminal:

sh
cd /opt/sintonia
bash /tmp/sintonia-grant-instance-admin.sh --email YOUR_EMAIL

Use only one grant method; both perform the same operation. The utility requires exactly one active, approved local account. It rejects disabled, pending or federated accounts, is idempotent and records audit. It neither creates accounts nor changes passwords, messages, devices or custody roles. Errors roll back the transaction.

Check the outcome#

In the browser, use Atualizar. The INSTALAÇÃO group should include Installation accounts, Installation security and Aplicativos e downloads. Use Encontrar configuração to find a setting. If only workspace sections appear, check that the granted email is the account signed in to this installation.

5. Use the default workspace or create your organization's first workspace#

A new self-hosted installation already contains Sintonia. The first account joining it is owner; later accounts join as members according to registration policy. You can use this space immediately. Creating another workspace is optional and is not needed to activate administration. Do not delete the default workspace/database to fix permissions.

Only installation administrators can create workspaces. Ownership of another workspace is insufficient. See Roles and permissions for delegation through the portal.

To create your organization's workspace, in the browser:

  1. Return to conversations. Open the sidebar first on mobile.
  2. Click the workspace-name component directly below the logo on the left; its tooltip is Trocar ou criar workspace.
  3. Choose Create workspace….
  4. Enter Nome do workspace, for example Main Team.
  5. Enter a unique identifier, for example main-team: 3–60 lowercase letters, digits and hyphens, beginning with a letter or digit.
  6. Select Criar. The app selects the new workspace and makes you its owner.

Workspace creation requires verified email. Complete that flow first if prompted. An account can own at most 20 workspaces. Creating/switching workspace does not automatically move members, messages or channels.

To choose your own workspace for subsequent logins, use Workspace input standard... in the same selector. This is a personal preference, not an installation-wide default for everyone.

6. Invite the team and create a channel#

  1. Open Administração and select the correct workspace for workspace areas.
  2. Open Pessoas → Convidar por e-mail.
  3. Invite the email address the person will use to register. Invitations last seven days and are single-use. Mailpit captures the invitation for the operator to retrieve; real SMTP delivers according to the configured provider.
  4. Back in conversations, use + beside CANAIS, enter a name such as general, and choose the visibility available to your organization.
  5. Send a message and verify that the colleague can join the workspace/channel according to its visibility.

An existing installation account does not automatically belong to every workspace. Installation administration also does not add people to private channels. See channels and public-channel protection.

7. Finish configuration#

  • Under System Settings, choose the ongoing registration policy: public, invitation-only or authorized IPs. Decide whether registrations require approval; initially false. Saved portal policy takes precedence over initial environment defaults.
  • Under Installation security, review MFA and remembered-device duration. Enroll your own second factor and keep recovery codes before enforcing stricter team policy.
  • Prepare an encrypted backup in Backup and recovery. Email password recovery does not replace the message-backup recovery password.
  • For Android download, prepare a signed APK and enable Aplicativos e downloads. Enabling policy does not create a file. See app deployment.

Federation, custody and worker recording remain optional; initial setup must not enable them automatically.

Troubleshooting#

SituationCheck
Only workspace administration appearsGrant/activate installation administration for the signed-in email, then refresh.
Initial activation button is missingCheck whether the token is configured and another administrator already exists; server owners can use the SSH utility.
Token is emptyUse path B; no default administrative password replaces the token.
Email-based grant is refusedThe account must exist here and be local, active and approved; check the exact email.
Registration is blockedCheck current policy, your public IP and invitation validity; for a new installation use the controlled window in step 2.
Workspace identifier is takenChoose a different identifier; do not delete data/workspaces.
Workspace creation requires email verificationFollow the received email or the message captured in Mailpit.
Menus look old after deploymentReload without erasing identity storage; check the published version and account role.

At completion, verify that your account sees INSTALAÇÃO, your team's workspace is selected and an invited colleague can join through the organization's chosen flow.

Search channels, QR codes, uploads, security…

↑ ↓ navigate ↵ open result