BAAS Docs
Reference

Installer Configuration setup.toml

Backend installer setup.toml, common keys, update sources, MirrorC CDK, and safety notes.

setup.toml is used by the BAAS backend installer and updater. The Tauri installer exposes common options in the UI, but this file is still useful when debugging update sources, MirrorC CDK, runtime paths, or direct backend startup.

Do not publish setup.toml

If it contains a MirrorC CDK, private mirror, or local machine paths, do not post the full setup.toml publicly.

Installer Flow

The backend installer can be summarized as:

Check Python and Runtime

Confirm that the local or bundled runtime is available, and download or patch the Python environment when required.

Prepare pip and Download Sources

Prepare pip from the source configuration in setup.toml, retrying through the configured source list when the network fails.

Clone or Update Backend Source

Fetch BAAS backend code from GitHub, a mirror, or MirrorC, then use the remote SHA to decide whether a refresh is needed.

Install Python Dependencies

Synchronize backend runtime dependencies. If dependencies have not changed, the installer may skip this step.

Persist Version and Path State

Record the current BAAS version, C++ component version, backend directory, and runtime path for later startup and updates.

Start Backend Service

After installation, start the backend process and wait for the Tauri client to finish local connection and key authentication.

The current Tauri installer still performs these steps, with directory selection, update sources, MirrorC CDK, and logs exposed in the desktop UI.

Common General Keys

KeyTypePurposeRecommendation
mirrorc_cdkstringMirrorC acceleration credentialFill only when you have a CDK
current_BAAS_versionstringCurrent backend versionUsually maintained automatically
current_BAAS_Cpp_versionstringCurrent C++ component versionUsually maintained automatically
get_remote_sha_methodstringRemote SHA lookup methodSwitch when GitHub is unreachable
devboolDo not update from remote sourceUse for local development or version freeze
refreshboolOverwrite local backend changesDestructive to local edits; use carefully
launchboolSkip install steps and start directlyUse only after environment is ready
force_launchboolClose an already running processBe careful during multi-instance debugging
debugboolKeep terminal window open after updateUseful for installer failures
source_listlistPyPI source retry listTune for unstable networks
runtime_pathstringCustom Python runtime pathChange only when you understand the backend env

URL and Path Keys

KeyDescription
REPO_URL_HTTPBackend source URL, such as GitHub, Gitee, GitCode, or another mirror
GET_PIP_URLget-pip.py download URL
GET_UPX_URLUPX download URL
GET_ENV_PATCH_URLEnvironment patch URL
GET_PYTHON_URLPython runtime download URL
BAAS_ROOT_PATHBackend root path; use an absolute path when changed
TMP_PATHTemporary directory
TOOL_KIT_PATHToolkit directory

MirrorC CDK

MirrorC is a third-party distribution and acceleration service. With a CDK, backend updates can use MirrorC. Without it, BAAS can still use the normal sources, depending on your network.

[General]
mirrorc_cdk = "your-cdk"
Legacy installer log showing a successful MirrorC install

When to Edit Manually

ScenarioKey to Check
GitHub is unreachableREPO_URL_HTTP, get_remote_sha_method
PyPI download is slowsource_list
Temporarily skip updateslaunch = true or dev = true
Debug installer failuredebug = true
Use MirrorCmirrorc_cdk

For normal BAAS Tauri usage, prefer the installer Advanced Settings and update-source controls instead of editing setup.toml directly.

On this page