Skip to content

Desktop Client Configuration

After deploying your self-hosted Flow-Like backend, you need to configure the desktop application to connect to it instead of the default cloud service.

Set the FLOW_LIKE_API_URL environment variable before launching the desktop app:

Terminal window
# Linux / macOS
export FLOW_LIKE_API_URL=https://your-api.example.com
./flow-like
# Windows (PowerShell)
$env:FLOW_LIKE_API_URL = "https://your-api.example.com"
.\flow-like.exe
# Windows (Command Prompt)
set FLOW_LIKE_API_URL=https://your-api.example.com
flow-like.exe

The desktop uses the value exactly as provided. Do not define FLOW_LIKE_API_URL as an empty string; an explicitly empty value overrides the build-time and hosted defaults and is a configuration error.

VariableDescriptionExample
FLOW_LIKE_API_URLFull URL to your self-hosted APIhttps://api.flow-like.internal

The URL should point to your API service:

  • Docker Compose: http://localhost:8080 or your exposed endpoint
  • Kubernetes: The external URL of your api service (e.g., via Ingress)

For custom builds, you can also set the default backend at compile time:

VariableDescription
FLOW_LIKE_CONFIG_DOMAINDomain without protocol (e.g., api.example.com)
FLOW_LIKE_CONFIG_SECUREUse HTTPS (true or false, defaults to true)

These are set via option_env!() during the Rust build process.

After configuring, verify the connection:

  1. Launch the desktop app
  2. Check the settings panel for the connected backend URL
  3. Try logging in or creating a local app

Ensure your API is reachable from the desktop machine:

Terminal window
# Docker Compose public gateway
curl -v https://your-compose.example.com/health
# Kubernetes API / Ingress
curl -v https://your-kubernetes-api.example.com/health/live

If using self-signed certificates, you may need to add them to your system’s trust store or use HTTP during development.

If your API uses HTTP but the app expects HTTPS, ensure your FLOW_LIKE_API_URL includes the correct protocol.