Web app configuration
The web app is a static single-page application, so it cannot read environment variables itself. Instead it reads its configuration from a file named config.js, which sets window.__APP_CONFIG__. The web container renders that file from its environment each time it starts, using frontend/app-config.js, which runs inside nginx. During development, npm run build:runtime writes the same file from the VITE_ variables, and npm run dev reads those variables directly.
Every setting therefore has two variables. The container variable configures a running container, and the build variable feeds the development tools. A container variable that is not set is left out of config.js, and the setting then takes its default from frontend/src/lib/runtimeConfigSchema.ts.
A variable that is set is passed on exactly as it is. A string setting may be empty, a boolean variable must be exactly true or false, and an enum variable must be one of its values. A list variable is comma-separated, and the app trims each item, converts it to lowercase and drops empty items. When a value does not fit its type, /config.js and /healthz answer with status 500 and an error message that names the variable.
The settings are grouped by the section of config.js that they fill. Each table lists the setting, its container variable and build variable, its type and its default, and what it does. The tables are generated from app-config.js and the schema, and the generator fails when a setting has no description.
urls
These settings give the addresses of the API and of the AI service.
urls.backendstringdefault ""Address of the Workspace API, which the app calls for everything except Copilot questions.
urls.aistringdefault ""Address of the built-in Copilot agent, which the app sends Copilot questions to.
authentication
These settings control how users sign in, which means whether email sign-in is allowed and which identity providers the app offers. They also control whether the web app passes the signed-in user's email address to an iframe page.
authentication.allowEmailLoginbooleandefault trueOffer sign-in with an email address and password on the login page. Turn it off when users sign in only through an identity provider.
authentication.allowSignupbooleandefault falseOffer account signup with an email address on the login page. The backend must have SIGNUP_ENABLED on and a mailer that delivers the confirmation link.
authentication.identityProviderslist of "google" | "microsoft" | "okta"default []The identity providers that the login page offers, as a comma-separated list. The app ignores any other item.
authentication.sendUserEmailAsHeaderbooleandefault falsePass the signed-in user's email address to an iframe page, in the X-Workspace-User header of the workspace-auth message that follows the page's workspace-connect message. The API sends the same header to every data backend whatever this is set to.
authProviders
These settings hold the client ids and domains of the single sign-on providers: Google, Microsoft (Azure) and Okta.
authProviders.googleClientIdstringdefault ""OAuth client id of the Google sign-in. Set it when identityProviders includes google.
copilot
These settings configure the Agent and what it offers to users.
copilot.enabledbooleandefault falseTurn the Copilot on. It is available only when this is on and at least one agent exists, either the built-in one (defaultCopilot) or a custom one that a user added.
copilot.defaultCopilotbooleandefault trueOffer the built-in Copilot agent as an agent that users can choose.
copilot.documentationLinksbooleandefault trueShow links to the documentation on the Copilot welcome screen.
copilot.aiEnhancementsbooleandefault trueOffer the AI-assisted features outside the chat panel, such as suggested names, documents that the Copilot can read and turning an artifact into a widget. Each user can turn them off in Settings. Needs copilot.enabled.
copilot.saveSkillFromChatbooleandefault falseLet users save a skill from a conversation with the Copilot. Needs copilot.enabled.
copilot.showCustomKeybooleandefault trueShow the user's remaining Copilot questions and the option to use their own OpenAI key in the agent picker.
ui
These settings control which parts of the interface are shown, and the default theme.
ui.showCompanionModebooleandefault falseShow the MCP Companion entry in the menu, which opens the dialog for connecting an MCP client.
ui.showMinimizeWidgetbooleandefault trueShow the minimize button on widgets.
ui.showExternalDocLinksbooleandefault trueShow the links to the documentation on the home page. They need links.docsUrl.
ui.showHelpDocumentationbooleandefault trueShow the help documentation entry in the menu. It needs links.docsUrl.
ui.showChangelogbooleandefault trueShow the changelog dialog in the sidebar.
ui.showCopilotSwitcherbooleandefault trueLet users switch between agents in the Copilot panel. Off, the panel shows the current agent without the picker.
ui.showRemoveFromOrgbooleandefault trueShow the button that removes a user from the organization in the user details of the admin area.
ui.defaultTheme"light" | "dark"default darkThe theme that a user sees until they choose one.
data
This group has one setting, which controls whether scripts in HTML widgets and Agent artifacts may run.
data.allowHtmlJsExecutionbooleandefault falseLet scripts in HTML widgets and in HTML artifacts of the Copilot run. Off, those pages run no script.
links
This group has one setting, the address of the documentation that the interface links to.
links.docsUrlstringdefault ""Address of the documentation that the app links to. Without it the app shows no documentation links.
contact
This group has one setting, the support email address that the interface shows.
contact.supportEmailstringdefault ""Email address of the support contact. The login page and the Copilot error screen show it to users who need help.
whiteLabel
These settings brand the app: its name, logos, favicon, description and keywords, and the theme stylesheet that WL_STYLESHEET names.
whiteLabel.namestringdefault FINOS WorkspaceThe product name, used as the title of the page and as the alternative text of the logos. The build also writes it into the manifest of the web app, and config.js cannot change that.
whiteLabel.loginImagestringdefault /assets/images/logo-horizontal-color.svgAddress of the logo on the login and password reset pages.
whiteLabel.leftSidebarLogostringdefault ""Address of the logo at the top of the sidebar. Empty, the sidebar shows the horizontal logo of the product.
whiteLabel.leftSidebarLogoDarkstringdefault ""Address of the sidebar logo in the dark theme. Empty, the app uses leftSidebarLogo.
whiteLabel.faviconstringdefault /logo.svgAddress of the icon in the browser tab.
whiteLabel.descriptionstringdefault An open, self-hosted analytics workspace for financial institutions to connect data, tools, and AI agents.The description of the product that search engines and link previews show. The build also writes it into the manifest of the web app, and config.js cannot change that.
whiteLabel.keywordsstringdefault FINOS Workspace, open source financial analytics, self-hosted analytics, financial data workspace, AI agentsThe keywords of the page, comma-separated.
whiteLabel.stylesheetstringdefault ""Address of a stylesheet that the app loads at startup, for example the stylesheet of a theme.
Content-Security-Policy
The web container sends a Content-Security-Policy header with the app, built by app-config.js from the same environment. It allows:
- scripts only from the app itself, plus
blob:and the hash of the plugin frame shell, with'unsafe-eval'and'wasm-unsafe-eval', which the app's schema validation and code highlighting need. WhenALLOW_HTML_JS_EXECUTIONistrue, it also allows'unsafe-inline'andhttps:scripts, because HTML widgets run the scripts of the HTML that a backend returns. - connections to the app, to the origins of
BACKEND_URLandAI_API_URL, to the API's WebSockets, and to anyhttps:orwss:address, which agents, data connections and approved plugins use. - images, fonts, media and frames from the app,
data:,blob:and anyhttps:address, plus the origins of the API, of the white-label images and of theWL_STYLESHEETstylesheet, and frames onlocalhost,127.0.0.1and0.0.0.0. - Google's sign-in script, styles and frames only when
AUTHENTICATION_IDENTITY_PROVIDERSincludesgoogle.
It sets object-src 'none', base-uri 'none', form-action 'self' https:, worker-src 'self' blob: and frame-ancestors 'self', so no other site can frame the app. Frames that the app builds itself, plugin frames, artifacts and HTML widgets, inherit this policy in addition to their own.
Two variables adjust it:
| Variable | What it does |
|---|---|
CSP_EXTRA_SOURCES | Sources to add, written like a policy: directives separated by semicolons, each followed by its sources, for example script-src https://cdn.plugins.example.com; frame-ancestors https://portal.example.com. Add the hosts that an approved plugin loads scripts from, an http: host that the app reaches directly, or a portal that frames the app. A source cannot be 'none', and only the directives of the policy can be named. |
CSP_REPORT_ONLY | true sends the policy as Content-Security-Policy-Report-Only, so the browser reports what it would block in its console without blocking it. Use it to try the policy with your plugins and backends first. Must be true or false. |
When either variable is invalid, the container sends default-src 'none', which stops the app from loading, logs the error, and /healthz answers 500, so a mistake never leaves the app without a policy. The development server, npm run dev, sends no policy.
Variables of the build
Three variables are read when the app is built and are not settings: no variable of the container takes their place, and config.js cannot change them. Like the build variables above, they come from the VITE_ variables of the build environment, such as frontend/.env. The table is generated from runtimeConfigSchema.ts, and a test fails when the code reads a VITE_ variable that is neither a setting nor in this table.
VITE_RELEASE_VERSIONany textdefault noneThe version that the sidebar and the changelog show. It is fixed when the app is built, and config.js cannot change it.
VITE_ENABLE_RENDER_SCANNING"true" | "false"default falseWith true, the app loads react-scan, which marks the components that render again, for performance work. Only the value true turns it on, and it is fixed when the app is built.
VITE_WL_SHORT_NAMEany textdefault noneThe short name in the manifest of the web app, which is the name under the icon of the installed app. Only the build reads it.