Skip to content

Domain & Customization ​

Each tenant can bind its own domain with its own logo, CSS and JS — one system presenting a different brand per tenant, ideal for white-label delivery.

Result ​

Visiting through the tenant's domain skips the enterprise ID on the login page and applies the tenant's logo, styles, copyright and language settings:

Configuration ​

Fill in Tenant Domain in Tenant Config (no protocol or port); the logo, Tenant CSS and Tenant JS options then appear:

How it works

The front end calls GET /erupt-api/tenant/domain-info?host=xxx with the current host; on a match it receives the tenant's enterprise ID, name, logo, CSS and JS and applies them (the endpoint is cached), so the login page can omit the enterprise ID.

Testing locally

Any subdomain of localhost points to your machine. With the app on localhost:8080, set the tenant domain to abc.localhost and open abc.localhost:8080.

Tenant CSS / JS ​

When visited through the domain, Tenant CSS is injected into the page and Tenant JS runs on page load, able to override front-end settings — per-tenant themes and behavior.

Variables available in Tenant JS:

VariableMaps toExample
eruptSiteConfigeruptSiteConfig in app.js; see Frontend ConfigurationeruptSiteConfig.copyrightTxt = "<a>xxx</a>"
eruptAppPropThe erupt-app node of application.yml; see Backend ConfigurationeruptAppProp.locales = ["ja-JP", "ko-KR"]
eruptAppProp.waterMark = false

Contributors

The avatar of contributor named as YuePeng YuePeng

Changelog

Released under the Apache-2.0 License.