Skip to main content

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.

    Container variable
    BACKEND_URL
    Build variable
    VITE_BACKEND_URL
  • urls.aistringdefault ""

    Address of the built-in Copilot agent, which the app sends Copilot questions to.

    Container variable
    AI_API_URL
    Build variable
    VITE_AI_API_URL

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 true

    Offer sign-in with an email address and password on the login page. Turn it off when users sign in only through an identity provider.

    Container variable
    AUTHENTICATION_ALLOW_EMAIL_LOGIN
    Build variable
    VITE_AUTHENTICATION_ALLOW_EMAIL_LOGIN
  • authentication.allowSignupbooleandefault false

    Offer 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.

    Container variable
    AUTHENTICATION_ALLOW_SIGNUP
    Build variable
    VITE_AUTHENTICATION_ALLOW_SIGNUP
  • 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.

    Container variable
    AUTHENTICATION_IDENTITY_PROVIDERS
    Build variable
    VITE_AUTHENTICATION_IDENTITY_PROVIDERS
  • authentication.sendUserEmailAsHeaderbooleandefault false

    Pass 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.

    Container variable
    AUTHENTICATION_SEND_USER_EMAIL_AS_HEADER
    Build variable
    VITE_AUTHENTICATION_SEND_USER_EMAIL_AS_HEADER

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.

    Container variable
    GOOGLE_OAUTH_CLIENT_ID
    Build variable
    VITE_GOOGLE_OAUTH_CLIENT_ID

copilot​

These settings configure the Agent and what it offers to users.

  • copilot.enabledbooleandefault false

    Turn 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.

    Container variable
    AI_COPILOT_ENABLED
    Build variable
    VITE_AI_COPILOT_ENABLED
  • copilot.defaultCopilotbooleandefault true

    Offer the built-in Copilot agent as an agent that users can choose.

    Container variable
    AI_COPILOT_DEFAULT_COPILOT
    Build variable
    VITE_AI_COPILOT_DEFAULT_COPILOT
  • copilot.aiEnhancementsbooleandefault true

    Offer 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.

    Container variable
    AI_COPILOT_AI_ENHANCEMENTS
    Build variable
    VITE_AI_COPILOT_AI_ENHANCEMENTS
  • copilot.saveSkillFromChatbooleandefault false

    Let users save a skill from a conversation with the Copilot. Needs copilot.enabled.

    Container variable
    AI_COPILOT_SAVE_SKILL_FROM_CHAT
    Build variable
    VITE_AI_COPILOT_SAVE_SKILL_FROM_CHAT
  • copilot.showCustomKeybooleandefault true

    Show the user's remaining Copilot questions and the option to use their own OpenAI key in the agent picker.

    Container variable
    AI_SHOW_CUSTOM_COPILOT_KEY
    Build variable
    VITE_AI_SHOW_CUSTOM_COPILOT_KEY

ui​

These settings control which parts of the interface are shown, and the default theme.

  • ui.showCompanionModebooleandefault false

    Show the MCP Companion entry in the menu, which opens the dialog for connecting an MCP client.

    Container variable
    UI_SHOW_COMPANION_MCP_MODE
    Build variable
    VITE_UI_SHOW_COMPANION_MCP_MODE
  • ui.showMinimizeWidgetbooleandefault true

    Show the minimize button on widgets.

    Container variable
    UI_SHOW_MINIMIZE_WIDGET
    Build variable
    VITE_UI_SHOW_MINIMIZE_WIDGET
  • ui.showHelpDocumentationbooleandefault true

    Show the help documentation entry in the menu. It needs links.docsUrl.

    Container variable
    UI_SHOW_HELP_DOCUMENTATION
    Build variable
    VITE_UI_SHOW_HELP_DOCUMENTATION
  • ui.showChangelogbooleandefault true

    Show the changelog dialog in the sidebar.

    Container variable
    UI_SHOW_CHANGELOG
    Build variable
    VITE_UI_SHOW_CHANGELOG
  • ui.showCopilotSwitcherbooleandefault true

    Let users switch between agents in the Copilot panel. Off, the panel shows the current agent without the picker.

    Container variable
    UI_SHOW_COPILOT_SWITCHER
    Build variable
    VITE_UI_SHOW_COPILOT_SWITCHER
  • ui.showRemoveFromOrgbooleandefault true

    Show the button that removes a user from the organization in the user details of the admin area.

    Container variable
    UI_SHOW_REMOVE_FROM_ORG
    Build variable
    VITE_UI_SHOW_REMOVE_FROM_ORG
  • ui.defaultTheme"light" | "dark"default dark

    The theme that a user sees until they choose one.

    Container variable
    UI_DEFAULT_THEME
    Build variable
    VITE_UI_DEFAULT_THEME

data​

This group has one setting, which controls whether scripts in HTML widgets and Agent artifacts may run.

  • data.allowHtmlJsExecutionbooleandefault false

    Let scripts in HTML widgets and in HTML artifacts of the Copilot run. Off, those pages run no script.

    Container variable
    ALLOW_HTML_JS_EXECUTION
    Build variable
    VITE_ALLOW_HTML_JS_EXECUTION

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.

    Container variable
    DOCS_URL
    Build variable
    VITE_DOCS_URL

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.

    Container variable
    SUPPORT_EMAIL
    Build variable
    VITE_SUPPORT_EMAIL

whiteLabel​

These settings brand the app: its name, logos, favicon, description and keywords, and the theme stylesheet that WL_STYLESHEET names.

  • whiteLabel.namestringdefault FINOS Workspace

    The 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.

    Container variable
    WL_NAME
    Build variable
    VITE_WL_NAME
  • whiteLabel.loginImagestringdefault /assets/images/logo-horizontal-color.svg

    Address of the logo on the login and password reset pages.

    Container variable
    WL_LOGIN_IMAGE
    Build variable
    VITE_WL_LOGIN_IMAGE
  • whiteLabel.leftSidebarLogoDarkstringdefault ""

    Address of the sidebar logo in the dark theme. Empty, the app uses leftSidebarLogo.

    Container variable
    WL_LEFT_SIDEBAR_LOGO_DARK
    Build variable
    VITE_WL_LEFT_SIDEBAR_LOGO_DARK
  • whiteLabel.faviconstringdefault /logo.svg

    Address of the icon in the browser tab.

    Container variable
    WL_FAVICON
    Build variable
    VITE_WL_FAVICON
  • 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.

    Container variable
    WL_DESCRIPTION
    Build variable
    VITE_WL_DESCRIPTION
  • whiteLabel.keywordsstringdefault FINOS Workspace, open source financial analytics, self-hosted analytics, financial data workspace, AI agents

    The keywords of the page, comma-separated.

    Container variable
    WL_KEYWORDS
    Build variable
    VITE_WL_KEYWORDS
  • whiteLabel.stylesheetstringdefault ""

    Address of a stylesheet that the app loads at startup, for example the stylesheet of a theme.

    Container variable
    WL_STYLESHEET
    Build variable
    VITE_WL_STYLESHEET

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. When ALLOW_HTML_JS_EXECUTION is true, it also allows 'unsafe-inline' and https: scripts, because HTML widgets run the scripts of the HTML that a backend returns.
  • connections to the app, to the origins of BACKEND_URL and AI_API_URL, to the API's WebSockets, and to any https: or wss: address, which agents, data connections and approved plugins use.
  • images, fonts, media and frames from the app, data:, blob: and any https: address, plus the origins of the API, of the white-label images and of the WL_STYLESHEET stylesheet, and frames on localhost, 127.0.0.1 and 0.0.0.0.
  • Google's sign-in script, styles and frames only when AUTHENTICATION_IDENTITY_PROVIDERS includes google.

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:

VariableWhat it does
CSP_EXTRA_SOURCESSources 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_ONLYtrue 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 none

    The 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 false

    With 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 none

    The 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.