Configuration overview
You configure FINOS Workspace with environment variables, one set for each kind of service, and a few files. This page shows which service reads what, which values have to match between services, and where to find the full lists.
Where each service reads its settings
| Service | What it reads | On the local stack | Full table |
|---|---|---|---|
| API, worker and init step | Environment variables with the names of the settings, without a prefix and without regard to case. A setting without a default is required, and so are the settings that the choice of DATABASE_TYPE and STORAGE_PROVIDER calls for, such as the database accounts with MySQL or the key for links to files with file storage in a folder. The process does not start without them. | backend-api/backend/envs/.env | Backend settings |
| The agent and its MCP server | Environment variables. The table says which of the two processes reads each one. | agent/.env, from the template agent/.env.example | The agent and its MCP server |
| Web app | The environment of its container, which nginx writes into /config.js each time that the container starts. A variable that is not set leaves its setting at the default, and a value that does not fit its type makes /config.js and /healthz answer with status 500. | The environment of the service web in docker-compose.yml | Web app configuration |
A few settings of the web app are fixed when its image is built, such as the name of the app that people install on their devices. White label lists them.
Settings that must agree
| Setting | Must match |
|---|---|
SELFURL of the API | BACKEND_URL of the web app and WORKSPACE_PUBLIC_URL of the agent: the API's public address. |
APPURL and FRONTENDURL of the API | The web app's address. Its origin is also WORKSPACE_ORIGIN of the agent and one of the origins in AGENT_CORS_ORIGINS. |
BACKEND_CORS_ORIGINS of the API | It includes the web app's origin, which the agent and its MCP server also send as WORKSPACE_ORIGIN. |
AI_API_URL of the web app | The public address of the agent. |
WORKSPACE_AES_KEY, JWT_SECRET and LOCAL_STORAGE_SECRET_KEY | The same in every API and worker container. |
AGENT_METERING_TOKEN of the agent | Signed with the API's JWT_SECRET. |
AGENT_SCOPE_SECRET | The same in the agent and in its MCP server. |
REDIS_URL of the agent and its MCP server | Not needed with one replica of each. Several replicas need the same Valkey or Redis server, which may be the one of the API. |
Serve FINOS Workspace over HTTPS and set the addresses explains the addresses, and Production setup the secrets.
Files
| File | Read by | Guide |
|---|---|---|
scripts/cfgs/config.toml | The init step, which creates the first organization and administrators from it | Run database migrations |
user_create.json | The API and the worker. The init step writes it, and DEFAULT_USER_MAPPING stands in for it where they cannot see it | Deploy on Kubernetes |
| A file that describes an organization | The script that provisions organizations | Provision an organization from a file |
| A theme stylesheet | The web app, at the address that WL_STYLESHEET gives | Create a theme |
| The certificates for the database | The API and the worker, at the paths that SSL_CA, SSL_CERT and SSL_KEY give | Connect FINOS Workspace to its database and cache |
Settings by task
- The addresses, TLS and the origins that may call the API: Serve FINOS Workspace over HTTPS and set the addresses.
- The database and Valkey: Connect FINOS Workspace to its database and cache.
- Uploaded files: Choose where files are stored.
- The agent's model: Choose the Agent's model and provider.
- The search of documents: Switch on the search of documents.
- Dictation: Switch on dictation.
- Single sign-on: Set up single sign-on.
- Several replicas of the agent: Run the agent on several replicas.
- Logs, metrics and traces: Ship logs and metrics and Export traces of the Agent.
- The brand: White label.