sintoniadocs
Deployment and operations

Self-hosted installation

Choose a deployment model and preserve ownership of data and keys.

On this pageCloud infrastructure optionsAddress in applicationAdministrationChannels between workspacesPersistence and installation backupDocumentation on own serverCorporate privacy and custodyOptional FederationExternal providers and sessions SAMLIndependent guides

Sintonia is distributed for your own installation, on a local server or infrastructure contracted by the organization. Use DEPLOYMENT_MODE=selfhost. There is no Sintonia Cloud offer or cloud selection in the application. Workspaces keep members, roles, quotas and administration separately.

Cloud infrastructure options#

For provider-specific provisioning, use Google Cloud with Terraform or DigitalOcean with Terraform. The GCP guide covers Compute Engine, IAP access, private images, persistent storage and backups, with Iowa as a configurable cost-oriented default. Preserve existing credentials, data and the cryptographic origin during migration.

Address in application#

On the web, the application uses the source of the page and does not offer server selection. Forward /api/*, /events (WebSocket) and the callbacks authentication for backend at the same origin. Mobile and desktop require Server address, remembered on the device after validation. There's no compiled cloud address on the client.

The web build is domain independent: flutter build web --release. . The proxies provided forward API, WebSocket and callbacks without changing the origin of the site. The alias of API existing can continue serving installed applications and identity providers. FRONTEND_URL points to the installation site; configure ALLOWED_ORIGINS with that origin.

Identity Continuity#

INSTANCE_IDENTITY_ORIGIN is the stable origin used for local sessions, device identities, QR and backups encrypted; it is not an alternative login destination. /api/health publishes this identifier and customers continue to send requests by the chosen/open address. When updating an existing installation, keep exactly the source used by the previous client (for example https://api.suaempresa.com). O Compose DigitalOcean use by default https://API_DOMAIN; the site maintains http://localhost:8080. . In new facilities, choose a canonical value and preserve it. The alias should continue to resolve for the installation itself, including for the flow of IDP existing. Do not clean storage or regenerate keys to change the login interface.

The legacy value DEPLOYMENT_MODE=saas remains recognized for compatibility of existing banks/configurations; it does not represent a cloud offer and should not be used in new installations. Do not change a legacy installation without reviewing account association/workspaces and registration policy.

Administration#

The first configuration step by step brings together initial registration, installation administrator, empty token, first workspace and team invitation.

  1. Set up a random ADMIN_SETUP_TOKEN of at least 32 characters in the backend environment. Do not use a user password as token.
  2. Create an account, enter and open Administration on the shield icon.
  3. Click Enable administrative access and inform the token. Only the first activation is accepted. Then remove the variable and restart backend.
  4. Only the installation administrator creates workspaces. It also manages workspaces, suspension, plans, quotas and accounts. The administrator of workspace manages members, invitations, functions, connections and audit. The owner controls administrators and keeps at least one owner.

Existing accounts in migration enter the original workspace as members. The initial activation allows the responsible to grant explicitly functions. Managing an installation does not add the administrator to conversations or deliver E2EE keys.

In production, prefer REGISTRATION_ENABLED=false to allow only new registrations with invitation. For public registration, set up true, real SMTP and proxy abuse protection. Invitations are valid for seven days, linked to the e-mail and can only be accepted once. Members can switch their workspaces in the sidebar.

Channels between workspaces#

On the portal, the source administrator chooses a channel from which he participates and sends a request to the destination workspace. The destination administrator accepts or refuses. Only after accepting the channel is associated with the two workspaces; the approveer receives access and can invite members of his organization. The server maintains a single channel history, protected by the same keys distributed to authorized devices.

The sharing described above works within an installation. Between independent installations, optional federation allows you to access a specific channel hosted in the destination between your own servers. Starts disabled and requires bilateral trust between installations and channel approval by the destination administrator. The destination hosts messages and files; there is no replication of history, relay or auto tunnel.

Close a connection or remove a person revokes future access by API. Copies and keys already received cannot be deleted remotely; the current protocol has no automatic channel key rotation. Create another channel with new participants to establish a new secret.

Persistence and installation backup#

  • PostgreSQL: postgres-data volume of Compose; includes encrypted messages, public identities, permissions, audit and webhooks queue.
  • Encrypted files and webhooks credentials key: instance-data volume, mounted on /app/data.
  • Without Docker: backend/data/uploads and backend/data/webhook.key, plus H2 in backend/data.
  • Backups recovery users remain encrypted in the bank; the operator does not know their passwords.

Make backup consistent from the e database of objects. In legacy mode saas, configure WEBHOOK_ENCRYPTION_KEY with 32 random bytes in Base64, equal in all replicas. In selfhost mode, if the variable is missing, a local key is generated in the persistent volume. Keep it next to backup; losing it prevents sending existing output webhooks. She doesn't decipher messages from users.

Composes use RustFS private for final objects; see storage. . Staging/ upload locks and WebSockets They're still local. For multiple replicas, it is still necessary to coordinate uploads and distribute events between instances; immediate delivery by WebSocket It's not distributed. Polling recovers messages, but does not replace an event infrastructure for scaling. Bank PostgreSQL and limits by workspace are implemented; public operation requires its own infrastructure and observability.

The Compose provided is of development. Before public exposure, set up HTTPS/WSS, proxy with upload limits and requests, SMTP, backups, credentials of PostgreSQL/LiveKit and doors/TURN of the LiveKit accessible by customers. The host HTTP of the frontend can serve app/build/web. . Do not publish local development services as production configuration.

Documentation on own server#

The portal is static and independent of backend. See documentation-site/README.md: manage with DOCS_SITE_URL=https://docs.seu-dominio.example python3 build.py within the directory and host only dist/. There is Dockerfile and configuration Nginx for port 8080. The scripts generate and check local files; they do not publish automatically.

Corporate privacy and custody#

The functionality starts disabled in all workspaces. Its activation is explicit on the portal, with two distinct administrative accounts, and does not require or receive a private key in the backend. The safe tool runs separately. See LGPD.md before setting up policy, retention and custodians. The copy retention job runs by default every hour; the Spring sintonia.custody.retention-interval parameter adjusts the interval in milliseconds. Backups shall respect its own retention operational policy.

System notifications depend on permission and open application. There is no FCM/APNs service for delivery with closed application. Android uses compileSdk 37 and deugaring; web requires safe context for notifications. Presence uses heartbeat and is absent after 5 minutes without activity; macOS/Windows/X11 consult idle system time. Mobile, browser and Wayland use activity and life cycle of the app. System/navigator suspension can interrupt heartbeats and result in disconnected after 90 seconds without promising global monitoring on platforms that do not allow it.

Optional Federation#

The channel federation between facilities is optional, starts disabled and requires bilateral configuration on the portal. See FEDERATION.md. The responsible server hosts the conversation; there is no automatic replication of the history. Configure CORS for reliable frontends and reach HTTPS/LiveKit. Collaboration concessions are restricted to the approved channel, without administration.

External providers and sessions SAML#

See AUTHENTICATION.md for Okta/RHSSO, SAML and LDAPS/AD. Connections are optional and configured in the portal. For SAML with POST between websites in production HTTPS, configure SSO_COOKIE_SAME_SITE=none and SSO_COOKIE_SECURE=true. Preserve the operating key that encrypts providers' credentials.

Independent guides#

The physical separation, builds and contracts are in Repositories. To deploy each component, see application, backend, stack and media, estimated hardware and tools/mark. The documentation site compiles separately from its public sources versioned.

When using an alias, the client consults the canonical health without credentials and requires it to authorize the source of access in clientOrigins, derived from ALLOWED_ORIGINS. Include web origin and client aliases explicitly in this list; do not use wildcard. An arbitrary server cannot reuse session/identity of another installation only by declaring identityOrigin.

See the current matrix of roles and permissions to delegate administration through the portal.

Search channels, QR codes, uploads, security…

↑ ↓ navigate ↵ open result